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