add a few more notes to whats new
[Samba.git] / docs / htmldocs / nmblookup.1.html
blob22cc35526cc92a555e6ca89493a1b0caf6e29da0
1 <HTML
2 ><HEAD
3 ><TITLE
4 >nmblookup</TITLE
5 ><META
6 NAME="GENERATOR"
7 CONTENT="Modular DocBook HTML Stylesheet Version 1.57"></HEAD
8 ><BODY
9 CLASS="REFENTRY"
10 BGCOLOR="#FFFFFF"
11 TEXT="#000000"
12 LINK="#0000FF"
13 VLINK="#840084"
14 ALINK="#0000FF"
15 ><H1
16 ><A
17 NAME="NMBLOOKUP"
18 >nmblookup</A
19 ></H1
20 ><DIV
21 CLASS="REFNAMEDIV"
22 ><A
23 NAME="AEN5"
24 ></A
25 ><H2
26 >Name</H2
27 >nmblookup&nbsp;--&nbsp;NetBIOS over TCP/IP client used to lookup NetBIOS
28 names</DIV
29 ><DIV
30 CLASS="REFSYNOPSISDIV"
31 ><A
32 NAME="AEN8"
33 ></A
34 ><H2
35 >Synopsis</H2
36 ><P
37 ><B
38 CLASS="COMMAND"
39 >nmblookup</B
40 > [-f] [-M] [-R] [-S] [-r] [-A] [-h] [-B &#60;broadcast address&#62;] [-U &#60;unicast address&#62;] [-d &#60;debug level&#62;] [-s &#60;smb config file&#62;] [-i &#60;NetBIOS scope&#62;] [-T] {name}</P
41 ></DIV
42 ><DIV
43 CLASS="REFSECT1"
44 ><A
45 NAME="AEN25"
46 ></A
47 ><H2
48 >DESCRIPTION</H2
49 ><P
50 >This tool is part of the <A
51 HREF="samba.7.html"
52 TARGET="_top"
53 > Samba</A
54 > suite.</P
55 ><P
56 ><B
57 CLASS="COMMAND"
58 >nmblookup</B
59 > is used to query NetBIOS names
60 and map them to IP addresses in a network using NetBIOS over TCP/IP
61 queries. The options allow the name queries to be directed at a
62 particular IP broadcast area or to a particular machine. All queries
63 are done over UDP.</P
64 ></DIV
65 ><DIV
66 CLASS="REFSECT1"
67 ><A
68 NAME="AEN31"
69 ></A
70 ><H2
71 >OPTIONS</H2
72 ><P
73 ></P
74 ><DIV
75 CLASS="VARIABLELIST"
76 ><DL
77 ><DT
78 >-f</DT
79 ><DD
80 ><P
81 >Causes nmblookup to print out the flags
82 in the NMB packet headers. These flags will print out as
83 strings like Authoritative, Recursion_Desired, Recursion_available, etc.
84 </P
85 ></DD
86 ><DT
87 >-M</DT
88 ><DD
89 ><P
90 >Searches for a master browser by looking
91 up the NetBIOS name <TT
92 CLASS="REPLACEABLE"
93 ><I
94 >name</I
95 ></TT
96 > with a
97 type of <TT
98 CLASS="CONSTANT"
99 >0x1d</TT
100 >. If <TT
101 CLASS="REPLACEABLE"
103 > name</I
104 ></TT
105 > is "-" then it does a lookup on the special name
107 CLASS="CONSTANT"
108 >__MSBROWSE__</TT
109 >.</P
110 ></DD
111 ><DT
112 >-R</DT
113 ><DD
115 >Set the recursion desired bit in the packet
116 to do a recursive lookup. This is used when sending a name
117 query to a machine running a WINS server and the user wishes
118 to query the names in the WINS server. If this bit is unset
119 the normal (broadcast responding) NetBIOS processing code
120 on a machine is used instead. See rfc1001, rfc1002 for details.
122 ></DD
123 ><DT
124 >-S</DT
125 ><DD
127 >Once the name query has returned an IP
128 address then do a node status query as well. A node status
129 query returns the NetBIOS names registered by a host.
131 ></DD
132 ><DT
133 >-r</DT
134 ><DD
136 >Try and bind to UDP port 137 to send and receive UDP
137 datagrams. The reason for this option is a bug in Windows 95
138 where it ignores the source port of the requesting packet
139 and only replies to UDP port 137. Unfortunately, on most UNIX
140 systems root privilege is needed to bind to this port, and
141 in addition, if the <A
142 HREF="nmbd.8.html"
143 TARGET="_top"
144 >nmbd(8)</A
146 daemon is running on this machine it also binds to this port.
148 ></DD
149 ><DT
150 >-A</DT
151 ><DD
153 >Interpret <TT
154 CLASS="REPLACEABLE"
156 >name</I
157 ></TT
158 > as
159 an IP Address and do a node status query on this address.</P
160 ></DD
161 ><DT
162 >-h</DT
163 ><DD
165 >Print a help (usage) message.</P
166 ></DD
167 ><DT
168 >-B &#60;broadcast address&#62;</DT
169 ><DD
171 >Send the query to the given broadcast address. Without
172 this option the default behavior of nmblookup is to send the
173 query to the broadcast address of the network interfaces as
174 either auto-detected or defined in the <A
175 HREF="smb.conf.5.html#INTERFACES"
176 TARGET="_top"
177 ><TT
178 CLASS="PARAMETER"
180 >interfaces</I
181 ></TT
184 > parameter of the <TT
185 CLASS="FILENAME"
186 >smb.conf (5)</TT
187 > file.
189 ></DD
190 ><DT
191 >-U &#60;unicast address&#62;</DT
192 ><DD
194 >Do a unicast query to the specified address or
195 host <TT
196 CLASS="REPLACEABLE"
198 >unicast address</I
199 ></TT
200 >. This option
201 (along with the <TT
202 CLASS="PARAMETER"
204 >-R</I
205 ></TT
206 > option) is needed to
207 query a WINS server.</P
208 ></DD
209 ><DT
210 >-d &#60;debuglevel&#62;</DT
211 ><DD
213 >debuglevel is an integer from 0 to 10.</P
215 >The default value if this parameter is not specified
216 is zero.</P
218 >The higher this value, the more detail will be logged
219 about the activities of <B
220 CLASS="COMMAND"
221 >nmblookup</B
222 >. At level
223 0, only critical errors and serious warnings will be logged.</P
225 >Levels above 1 will generate considerable amounts of
226 log data, and should only be used when investigating a problem.
227 Levels above 3 are designed for use only by developers and
228 generate HUGE amounts of data, most of which is extremely cryptic.</P
230 >Note that specifying this parameter here will override
231 the <A
232 HREF="smb.conf.5.html#LOGLEVEL"
233 TARGET="_top"
234 ><TT
235 CLASS="PARAMETER"
237 > log level</I
238 ></TT
239 ></A
240 > parameter in the <TT
241 CLASS="FILENAME"
242 > smb.conf(5)</TT
243 > file.</P
244 ></DD
245 ><DT
246 >-s &#60;smb.conf&#62;</DT
247 ><DD
249 >This parameter specifies the pathname to
250 the Samba configuration file, <A
251 HREF="smb.conf.5.html"
252 TARGET="_top"
253 > smb.conf(5)</A
254 >. This file controls all aspects of
255 the Samba setup on the machine.</P
256 ></DD
257 ><DT
258 >-i &#60;scope&#62;</DT
259 ><DD
261 >This specifies a NetBIOS scope that
263 CLASS="COMMAND"
264 >nmblookup</B
265 > will use to communicate with when
266 generating NetBIOS names. For details on the use of NetBIOS
267 scopes, see rfc1001.txt and rfc1002.txt. NetBIOS scopes are
269 >very</EM
270 > rarely used, only set this parameter
271 if you are the system administrator in charge of all the
272 NetBIOS systems you communicate with.</P
273 ></DD
274 ><DT
275 >-T</DT
276 ><DD
278 >This causes any IP addresses found in the
279 lookup to be looked up via a reverse DNS lookup into a
280 DNS name, and printed out before each</P
282 ><EM
283 >IP address .... NetBIOS name</EM
284 ></P
286 > pair that is the normal output.</P
287 ></DD
288 ><DT
289 >name</DT
290 ><DD
292 >This is the NetBIOS name being queried. Depending
293 upon the previous options this may be a NetBIOS name or IP address.
294 If a NetBIOS name then the different name types may be specified
295 by appending '#&#60;type&#62;' to the name. This name may also be
296 '*', which will return all registered names within a broadcast
297 area.</P
298 ></DD
299 ></DL
300 ></DIV
301 ></DIV
302 ><DIV
303 CLASS="REFSECT1"
305 NAME="AEN115"
306 ></A
307 ><H2
308 >EXAMPLES</H2
311 CLASS="COMMAND"
312 >nmblookup</B
313 > can be used to query
314 a WINS server (in the same way <B
315 CLASS="COMMAND"
316 >nslookup</B
317 > is
318 used to query DNS servers). To query a WINS server,
320 CLASS="COMMAND"
321 >nmblookup</B
322 > must be called like this:</P
325 CLASS="COMMAND"
326 >nmblookup -U server -R 'name'</B
327 ></P
329 >For example, running :</P
332 CLASS="COMMAND"
333 >nmblookup -U samba.org -R 'IRIX#1B'</B
334 ></P
336 >would query the WINS server samba.org for the domain
337 master browser (1B name type) for the IRIX workgroup.</P
338 ></DIV
339 ><DIV
340 CLASS="REFSECT1"
342 NAME="AEN127"
343 ></A
344 ><H2
345 >VERSION</H2
347 >This man page is correct for version 2.2 of
348 the Samba suite.</P
349 ></DIV
350 ><DIV
351 CLASS="REFSECT1"
353 NAME="AEN130"
354 ></A
355 ><H2
356 >SEE ALSO</H2
359 HREF="nmbd.8.html"
360 TARGET="_top"
362 CLASS="COMMAND"
363 >nmbd(8)</B
364 ></A
367 HREF="samba.7.html"
368 TARGET="_top"
369 >samba(7)</A
370 >, and <A
371 HREF="smb.conf.5.html"
372 TARGET="_top"
373 >smb.conf(5)</A
376 ></DIV
377 ><DIV
378 CLASS="REFSECT1"
380 NAME="AEN137"
381 ></A
382 ><H2
383 >AUTHOR</H2
385 >The original Samba software and related utilities
386 were created by Andrew Tridgell. Samba is now developed
387 by the Samba Team as an Open Source project similar
388 to the way the Linux kernel is developed.</P
390 >The original Samba man pages were written by Karl Auer.
391 The man page sources were converted to YODL format (another
392 excellent piece of Open Source software, available at
394 HREF="ftp://ftp.icce.rug.nl/pub/unix/"
395 TARGET="_top"
396 > ftp://ftp.icce.rug.nl/pub/unix/</A
397 >) and updated for the Samba 2.0
398 release by Jeremy Allison. The conversion to DocBook for
399 Samba 2.2 was done by Gerald Carter</P
400 ></DIV
401 ></BODY
402 ></HTML