This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.
[kai/samba-autobuild/.git] / docs / manpages / nmblookup.1
1 .\" This manpage has been automatically generated by docbook2man-spec
2 .\" from a DocBook document.  docbook2man-spec can be found at:
3 .\" <http://shell.ipoline.com/~elmert/hacks/docbook2X/> 
4 .\" Please send any bug reports, improvements, comments, patches, 
5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
6 .TH "NMBLOOKUP" "1" "28 January 2002" "" ""
7 .SH NAME
8 nmblookup \- NetBIOS over TCP/IP client used to lookup NetBIOS  names
9 .SH SYNOPSIS
10 .sp
11 \fBnmblookup\fR [ \fB-M\fR ]  [ \fB-R\fR ]  [ \fB-S\fR ]  [ \fB-r\fR ]  [ \fB-A\fR ]  [ \fB-h\fR ]  [ \fB-B <broadcast address>\fR ]  [ \fB-U <unicast address>\fR ]  [ \fB-d <debug level>\fR ]  [ \fB-s <smb config file>\fR ]  [ \fB-i <NetBIOS scope>\fR ]  [ \fB-T\fR ]  \fBname\fR
12 .SH "DESCRIPTION"
13 .PP
14 This tool is part of the  Sambasuite.
15 .PP
16 \fBnmblookup\fR is used to query NetBIOS names 
17 and map them to IP addresses in a network using NetBIOS over TCP/IP 
18 queries. The options allow the name queries to be directed at a 
19 particular IP broadcast area or to a particular machine. All queries 
20 are done over UDP.
21 .SH "OPTIONS"
22 .TP
23 \fB-M\fR
24 Searches for a master browser by looking 
25 up the NetBIOS name \fIname\fR with a 
26 type of 0x1d. If \fI name\fR is "-" then it does a lookup on the special name 
27 __MSBROWSE__.
28 .TP
29 \fB-R\fR
30 Set the recursion desired bit in the packet 
31 to do a recursive lookup. This is used when sending a name 
32 query to a machine running a WINS server and the user wishes 
33 to query the names in the WINS server. If this bit is unset 
34 the normal (broadcast responding) NetBIOS processing code 
35 on a machine is used instead. See rfc1001, rfc1002 for details.
36 .TP
37 \fB-S\fR
38 Once the name query has returned an IP 
39 address then do a node status query as well. A node status 
40 query returns the NetBIOS names registered by a host.
41 .TP
42 \fB-r\fR
43 Try and bind to UDP port 137 to send and receive UDP
44 datagrams. The reason for this option is a bug in Windows 95 
45 where it ignores the source port of the requesting packet 
46 and only replies to UDP port 137. Unfortunately, on most UNIX 
47 systems root privilege is needed to bind to this port, and 
48 in addition, if the nmbd(8)
49 daemon is running on this machine it also binds to this port.
50 .TP
51 \fB-A\fR
52 Interpret \fIname\fR as 
53 an IP Address and do a node status query on this address.
54 .TP
55 \fB-h\fR
56 Print a help (usage) message.
57 .TP
58 \fB-B <broadcast address>\fR
59 Send the query to the given broadcast address. Without 
60 this option the default behavior of nmblookup is to send the 
61 query to the broadcast address of the network interfaces as 
62 either auto-detected or defined in the \fIinterfaces\fR
63 parameter of the \fIsmb.conf (5)\fR file.
64 .TP
65 \fB-U <unicast address>\fR
66 Do a unicast query to the specified address or 
67 host \fIunicast address\fR. This option 
68 (along with the \fI-R\fR option) is needed to 
69 query a WINS server.
70 .TP
71 \fB-d <debuglevel>\fR
72 debuglevel is an integer from 0 to 10.
73
74 The default value if this parameter is not specified 
75 is zero.
76
77 The higher this value, the more detail will be logged 
78 about the activities of \fBnmblookup\fR. At level 
79 0, only critical errors and serious warnings will be logged.
80
81 Levels above 1 will generate considerable amounts of 
82 log data, and should only be used when investigating a problem. 
83 Levels above 3 are designed for use only by developers and 
84 generate HUGE amounts of data, most of which is extremely cryptic.
85
86 Note that specifying this parameter here will override 
87 the \fI log level\fRparameter in the \fI smb.conf(5)\fR file.
88 .TP
89 \fB-s <smb.conf>\fR
90 This parameter specifies the pathname to 
91 the Samba configuration file,  smb.conf(5). This file controls all aspects of
92 the Samba setup on the machine.
93 .TP
94 \fB-i <scope>\fR
95 This specifies a NetBIOS scope that
96 \fBnmblookup\fR will use to communicate with when 
97 generating NetBIOS names. For details on the use of NetBIOS 
98 scopes, see rfc1001.txt and rfc1002.txt. NetBIOS scopes are 
99 \fBvery\fR rarely used, only set this parameter 
100 if you are the system administrator in charge of all the 
101 NetBIOS systems you communicate with.
102 .TP
103 \fB-T\fR
104 This causes any IP addresses found in the 
105 lookup to be looked up via a reverse DNS lookup into a 
106 DNS name, and printed out before each
107
108 \fBIP address .... NetBIOS name\fR
109
110 pair that is the normal output.
111 .TP
112 \fBname\fR
113 This is the NetBIOS name being queried. Depending 
114 upon the previous options this may be a NetBIOS name or IP address. 
115 If a NetBIOS name then the different name types may be specified 
116 by appending '#<type>' to the name. This name may also be
117 \&'*', which will return all registered names within a broadcast 
118 area.
119 .SH "EXAMPLES"
120 .PP
121 \fBnmblookup\fR can be used to query 
122 a WINS server (in the same way \fBnslookup\fR is 
123 used to query DNS servers). To query a WINS server, 
124 \fBnmblookup\fR must be called like this:
125 .PP
126 \fBnmblookup -U server -R 'name'\fR
127 .PP
128 For example, running :
129 .PP
130 \fBnmblookup -U samba.org -R 'IRIX#1B'\fR
131 .PP
132 would query the WINS server samba.org for the domain 
133 master browser (1B name type) for the IRIX workgroup.
134 .SH "VERSION"
135 .PP
136 This man page is correct for version 2.2 of 
137 the Samba suite.
138 .SH "SEE ALSO"
139 .PP
140 \fBnmbd(8)\fR, 
141 samba(7)
142 .SH "AUTHOR"
143 .PP
144 The original Samba software and related utilities 
145 were created by Andrew Tridgell. Samba is now developed
146 by the Samba Team as an Open Source project similar 
147 to the way the Linux kernel is developed.
148 .PP
149 The original Samba man pages were written by Karl Auer. 
150 The man page sources were converted to YODL format (another 
151 excellent piece of Open Source software, available at
152 ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0 
153 release by Jeremy Allison. The conversion to DocBook for 
154 Samba 2.2 was done by Gerald Carter