217ddd79655ef5919ccb0cbbdd15368667314055
[gd/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.anu.edu.au">
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#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. This is done by doing a
42 broadcast lookup on the special name <code>__MSBROWSE__</code>.
43 <p><br><a name="minusR"></a>
44 <li><strong><strong>-R</strong></strong> Set the recursion desired bit in the packet to do a
45 recursive lookup. This is used when sending a name query to a machine
46 running a WINS server and the user wishes to query the names in the
47 WINS server.  If this bit is unset the normal (broadcast responding)
48 NetBIOS processing code on a machine is used instead. See rfc1001,
49 rfc1002 for details.
50 <p><br><a name="minusS"></a>
51 <li><strong><strong>-S</strong></strong> Once the name query has returned an IP address then do a
52 node status query as well. A node status query returns the NetBIOS names 
53 registered by a host.
54 <p><br><a name="minusr"></a>
55 <li><strong><strong>-r</strong></strong> Try and bind to UDP port 137 to send and receive UDP
56 datagrams. The reason for this option is a bug in Windows 95 where it
57 ignores the source port of the requesting packet and only replies to
58 UDP port 137. Unfortunately, on most UNIX systems root privilage is
59 needed to bind to this port, and in addition, if the
60 <a href="nmbd.8.html"><strong>nmbd</strong></a> daemon is running on this machine it also
61 binds to this port.
62 <p><br><a name="minusA"></a>
63 <li><strong><strong>-A</strong></strong> Interpret &lt;name&gt; as an IP Address and do a node status
64 query on this address.
65 <p><br><a name="minush"></a>
66 <li><strong><strong>-h</strong></strong> Print a help (usage) message.
67 <p><br><a name="minusB"></a>
68 <li><strong><strong>-B broadcast address</strong></strong> Send the query to the given broadcast
69 address. Without this option the default behavior of nmblookup is to
70 send the query to the broadcast address of the primary network
71 interface as either auto-detected or defined in the 
72 <a href="smb.conf.5.html#interfaces"><strong>interfaces</strong></a> parameter of the 
73 <a href="smb.conf.5.html"><strong>smb.conf (5)</strong></a> file.
74 <p><br><a name="minusU"></a>
75 <li><strong><strong>-U unicast address</strong></strong> Do a unicast query to the specified
76 address or host <code>"unicast address"</code>. This option (along with the
77 <a href="nmblookup.1.html#minusR"><strong>-R</strong></a> option) is needed to query a WINS server.
78 <p><br><a name="minusd"></a>
79 <li><strong><strong>-d debuglevel</strong></strong> debuglevel is an integer from 0 to 10.
80 <p><br>The default value if this parameter is not specified is zero.
81 <p><br>The higher this value, the more detail will be logged about the
82 activities of <strong>nmblookup</strong>. At level 0, only critical errors and
83 serious warnings will be logged.
84 <p><br>Levels above 1 will generate considerable amounts of log data, and
85 should only be used when investigating a problem. Levels above 3 are
86 designed for use only by developers and generate HUGE amounts of
87 data, most of which is extremely cryptic.
88 <p><br>Note that specifying this parameter here will override the <a href="smb.conf.5.html#loglevel"><strong>log
89 level</strong></a> parameter in the <a href="smb.conf.5.html"><strong>smb.conf
90 (5)</strong></a> file.
91 <p><br><a name="minuss"></a>
92 <li><strong><strong>-s smb.conf</strong></strong> This parameter specifies the pathname to the
93 Samba configuration file, <a href="smb.conf.5.html"><strong>smb.conf</strong></a>. 
94 This file controls all aspects of
95 the Samba setup on the machine.
96 <p><br><a name="minusi"></a>
97 <li><strong><strong>-i scope</strong></strong> This specifies a NetBIOS scope that <strong>nmblookup</strong> will use
98 to communicate with when generating NetBIOS names. For details on the
99 use of NetBIOS scopes, see rfc1001.txt and rfc1002.txt. NetBIOS scopes
100 are <em>very</em> rarely used, only set this parameter if you are the
101 system administrator in charge of all the NetBIOS systems you
102 communicate with.
103 <p><br><a name="name"></a>
104 <li><strong><strong>name</strong></strong> This is the NetBIOS name being queried. Depending upon
105 the previous options this may be a NetBIOS name or IP address. If a
106 NetBIOS name then the different name types may be specified by
107 appending <code>#&lt;type&gt;</code> to the name. This name may also be <code>"*"</code>,
108 which will return all registered names within a broadcast area.
109 <p><br></ul>
110 <p><br><a name="EXAMPLES"></a>
111 <h2>EXAMPLES</h2>
112     
113 <p><br><strong>nmblookup</strong> can be used to query a WINS server (in the same way
114 <strong>nslookup</strong> is used to query DNS servers). To query a WINS server,
115 <strong>nmblookup</strong> must be called like this:
116 <p><br><code>nmblookup -U server -R 'name'</code>
117 <p><br>For example, running :
118 <p><br><code>nmblookup -U samba.anu.edu.au -R IRIX#1B'</code>
119 <p><br>would query the WINS server samba.anu.edu.au for the domain master
120 browser (1B name type) for the IRIX workgroup.
121 <p><br><a name="VERSION"></a>
122 <h2>VERSION</h2>
123     
124 <p><br>This man page is correct for version 2.0 of the Samba suite.
125 <p><br><a name="SEEALSO"></a>
126 <h2>SEE ALSO</h2>
127     
128 <p><br><a href="samba.7.html"><strong>samba (7)</strong></a>, <a href="nmbd.8.html"><strong>nmbd (8)</strong></a>,
129 <a href="smb.conf.5.html"><strong>smb.conf (5)</strong></a>
130 <p><br><a name="AUTHOR"></a>
131 <h2>AUTHOR</h2>
132     
133 <p><br>The original Samba software and related utilities were created by
134 Andrew Tridgell <a href="mailto:samba-bugs@samba.anu.edu.au"><em>samba-bugs@samba.anu.edu.au</em></a>. Samba is now developed
135 by the Samba Team as an Open Source project similar to the way the
136 Linux kernel is developed.
137 <p><br>The original Samba man pages were written by Karl Auer. The man page
138 sources were converted to YODL format (another excellent piece of Open
139 Source software, available at
140 <a href="ftp://ftp.icce.rug.nl/pub/unix/"><strong>ftp://ftp.icce.rug.nl/pub/unix/</strong></a>)
141 and updated for the Samba2.0 release by Jeremy Allison.
142 <a href="mailto:samba-bugs@samba.anu.edu.au"><em>samba-bugs@samba.anu.edu.au</em></a>.
143 <p><br>See <a href="samba.7.html"><strong>samba (7)</strong></a> to find out how to get a full
144 list of contributors and details on how to submit bug reports,
145 comments etc.
146 <p><br></body>
147 </html>