source: branches/samba-3.3.x/docs/htmldocs/manpages/nmblookup.1.html@ 274

Last change on this file since 274 was 218, checked in by Herwig Bauernfeind, 17 years ago

Import Samba 3.3 branch at 3.3.0 level docs htmldocs (psmedley's port)

File size: 10.5 KB
Line 
1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>nmblookup</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.74.0"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="nmblookup"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>nmblookup &#8212; NetBIOS over TCP/IP client used to lookup NetBIOS
2 names</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><code class="literal">nmblookup</code> [-M] [-R] [-S] [-r] [-A] [-h] [-B &lt;broadcast address&gt;] [-U &lt;unicast address&gt;] [-d &lt;debug level&gt;] [-s &lt;smb config file&gt;] [-i &lt;NetBIOS scope&gt;] [-T] [-f] {name}</p></div></div><div class="refsect1" lang="en"><a name="id2483412"></a><h2>DESCRIPTION</h2><p>This tool is part of the <a class="citerefentry" href="samba.7.html"><span class="citerefentry"><span class="refentrytitle">samba</span>(7)</span></a> suite.</p><p><code class="literal">nmblookup</code> is used to query NetBIOS names
3 and map them to IP addresses in a network using NetBIOS over TCP/IP
4 queries. The options allow the name queries to be directed at a
5 particular IP broadcast area or to a particular machine. All queries
6 are done over UDP.</p></div><div class="refsect1" lang="en"><a name="id2483558"></a><h2>OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">-M</span></dt><dd><p>Searches for a master browser by looking
7 up the NetBIOS name <em class="replaceable"><code>name</code></em> with a
8 type of <code class="constant">0x1d</code>. If <em class="replaceable"><code>
9 name</code></em> is "-" then it does a lookup on the special name
10 <code class="constant">__MSBROWSE__</code>. Please note that in order to
11 use the name "-", you need to make sure "-" isn't parsed as an
12 argument, e.g. use :
13 <strong class="userinput"><code>nmblookup -M -- -</code></strong>.</p></dd><dt><span class="term">-R</span></dt><dd><p>Set the recursion desired bit in the packet
14 to do a recursive lookup. This is used when sending a name
15 query to a machine running a WINS server and the user wishes
16 to query the names in the WINS server. If this bit is unset
17 the normal (broadcast responding) NetBIOS processing code
18 on a machine is used instead. See RFC1001, RFC1002 for details.
19 </p></dd><dt><span class="term">-S</span></dt><dd><p>Once the name query has returned an IP
20 address then do a node status query as well. A node status
21 query returns the NetBIOS names registered by a host.
22 </p></dd><dt><span class="term">-r</span></dt><dd><p>Try and bind to UDP port 137 to send and receive UDP
23 datagrams. The reason for this option is a bug in Windows 95
24 where it ignores the source port of the requesting packet
25 and only replies to UDP port 137. Unfortunately, on most UNIX
26 systems root privilege is needed to bind to this port, and
27 in addition, if the <a class="citerefentry" href="nmbd.8.html"><span class="citerefentry"><span class="refentrytitle">nmbd</span>(8)</span></a> daemon is running on this machine it also binds to this port.
28 </p></dd><dt><span class="term">-A</span></dt><dd><p>Interpret <em class="replaceable"><code>name</code></em> as
29 an IP Address and do a node status query on this address.</p></dd><dt><span class="term">-n &lt;primary NetBIOS name&gt;</span></dt><dd><p>This option allows you to override
30the NetBIOS name that Samba uses for itself. This is identical
31to setting the <a class="link" href="smb.conf.5.html#NETBIOSNAME" target="_top">netbios name</a> parameter in the <code class="filename">smb.conf</code> file.
32However, a command
33line setting will take precedence over settings in
34<code class="filename">smb.conf</code>.</p></dd><dt><span class="term">-i &lt;scope&gt;</span></dt><dd><p>This specifies a NetBIOS scope that
35<code class="literal">nmblookup</code> will use to communicate with when
36generating NetBIOS names. For details on the use of NetBIOS
37scopes, see rfc1001.txt and rfc1002.txt. NetBIOS scopes are
38<span class="emphasis"><em>very</em></span> rarely used, only set this parameter