1NMBLOOKUP(1)                     User Commands                    NMBLOOKUP(1)
2
3
4

NAME

6       nmblookup - NetBIOS over TCP/IP client used to lookup NetBIOS names
7

SYNOPSIS

9       nmblookup [-M|--master-browser] [-R|--recursion] [-S|--status]
10        [-r|--root-port] [-A|--lookup-by-ip]
11        [-B|--broadcast <broadcast address>] [-U|--unicast <unicast address>]
12        [-d <debug level>] [-s <smb config file>] [-i <NetBIOS scope>]
13        [-T|--translate] [-f|--flags] {name}
14

DESCRIPTION

16       This tool is part of the samba(7) suite.
17
18       nmblookup is used to query NetBIOS names and map them to IP addresses
19       in a network using NetBIOS over TCP/IP queries. The options allow the
20       name queries to be directed at a particular IP broadcast area or to a
21       particular machine. All queries are done over UDP.
22

OPTIONS

24       -M|--master-browser
25           Searches for a master browser by looking up the NetBIOS name with a
26           type of 0x1d. If
27            name is "-" then it does a lookup on the special name
28           __MSBROWSE__. Please note that in order to use the name "-", you
29           need to make sure "-" isn´t parsed as an argument, e.g. use :
30           nmblookup -M -- -.
31
32       -R|--recursion
33           Set the recursion desired bit in the packet to do a recursive
34           lookup. This is used when sending a name query to a machine running
35           a WINS server and the user wishes to query the names in the WINS
36           server. If this bit is unset the normal (broadcast responding)
37           NetBIOS processing code on a machine is used instead. See RFC1001,
38           RFC1002 for details.
39
40       -S|--status
41           Once the name query has returned an IP address then do a node
42           status query as well. A node status query returns the NetBIOS names
43           registered by a host.
44
45       -r|--root-port
46           Try and bind to UDP port 137 to send and receive UDP datagrams. The
47           reason for this option is a bug in Windows 95 where it ignores the
48           source port of the requesting packet and only replies to UDP port
49           137. Unfortunately, on most UNIX systems root privilege is needed
50           to bind to this port, and in addition, if the nmbd(8) daemon is
51           running on this machine it also binds to this port.
52
53       -A|--lookup-by-ip
54           Interpret name as an IP Address and do a node status query on this
55           address.
56
57       -n|--netbiosname <primary NetBIOS name>
58           This option allows you to override the NetBIOS name that Samba uses
59           for itself. This is identical to setting the netbios name parameter
60           in the smb.conf file. However, a command line setting will take
61           precedence over settings in smb.conf.
62
63       -i|--scope <scope>
64           This specifies a NetBIOS scope that nmblookup will use to
65           communicate with when generating NetBIOS names. For details on the
66           use of NetBIOS scopes, see rfc1001.txt and rfc1002.txt. NetBIOS
67           scopes are very rarely used, only set this parameter if you are the
68           system administrator in charge of all the NetBIOS systems you
69           communicate with.
70
71       -W|--workgroup=domain
72           Set the SMB domain of the username. This overrides the default
73           domain which is the domain defined in smb.conf. If the domain
74           specified is the same as the servers NetBIOS name, it causes the
75           client to log on using the servers local SAM (as opposed to the
76           Domain SAM).
77
78       -O|--socket-options socket options
79           TCP socket options to set on the client socket. See the socket
80           options parameter in the smb.conf manual page for the list of valid
81           options.
82
83       -?|--help
84           Print a summary of command line options.
85
86       --usage
87           Display brief usage message.
88
89       -B|--broadcast <broadcast address>
90           Send the query to the given broadcast address. Without this option
91           the default behavior of nmblookup is to send the query to the
92           broadcast address of the network interfaces as either auto-detected
93           or defined in the interfaces parameter of the smb.conf(5) file.
94
95       -U|--unicast <unicast address>
96           Do a unicast query to the specified address or host unicast
97           address. This option (along with the -R option) is needed to query
98           a WINS server.
99
100       -d|--debuglevel=level
101           level is an integer from 0 to 10. The default value if this
102           parameter is not specified is 0.
103
104           The higher this value, the more detail will be logged to the log
105           files about the activities of the server. At level 0, only critical
106           errors and serious warnings will be logged. Level 1 is a reasonable
107           level for day-to-day running - it generates a small amount of
108           information about operations carried out.
109
110           Levels above 1 will generate considerable amounts of log data, and
111           should only be used when investigating a problem. Levels above 3
112           are designed for use only by developers and generate HUGE amounts
113           of log data, most of which is extremely cryptic.
114
115           Note that specifying this parameter here will override the log
116           level parameter in the smb.conf file.
117
118       -V|--version
119           Prints the program version number.
120
121       -s|--configfile=<configuration file>
122           The file specified contains the configuration details required by
123           the server. The information in this file includes server-specific
124           information such as what printcap file to use, as well as
125           descriptions of all the services that the server is to provide. See
126           smb.conf for more information. The default configuration file name
127           is determined at compile time.
128
129       -l|--log-basename=logdirectory
130           Base directory name for log/debug files. The extension ".progname"
131           will be appended (e.g. log.smbclient, log.smbd, etc...). The log
132           file is never removed by the client.
133
134       --option=<name>=<value>
135           Set the smb.conf(5) option "<name>" to value "<value>" from the
136           command line. This overrides compiled-in defaults and options read
137           from the configuration file.
138
139       -T|--translate
140           This causes any IP addresses found in the lookup to be looked up
141           via a reverse DNS lookup into a DNS name, and printed out before
142           each
143
144           IP address .... NetBIOS name
145
146           pair that is the normal output.
147
148       -f|--flags
149           Show which flags apply to the name that has been looked up.
150           Possible answers are zero or more of: Response, Authoritative,
151           Truncated, Recursion_Desired, Recursion_Available, Broadcast.
152
153       name
154           This is the NetBIOS name being queried. Depending upon the previous
155           options this may be a NetBIOS name or IP address. If a NetBIOS name
156           then the different name types may be specified by appending
157           ´#<type>´ to the name. This name may also be ´*´, which will return
158           all registered names within a broadcast area.
159

EXAMPLES

161       nmblookup can be used to query a WINS server (in the same way nslookup
162       is used to query DNS servers). To query a WINS server, nmblookup must
163       be called like this:
164
165       nmblookup -U server -R ´name´
166
167       For example, running :
168
169       nmblookup -U samba.org -R ´IRIX#1B´
170
171       would query the WINS server samba.org for the domain master browser (1B
172       name type) for the IRIX workgroup.
173

VERSION

175       This man page is correct for version 3 of the Samba suite.
176

SEE ALSO

178       nmbd(8), samba(7), and smb.conf(5).
179

AUTHOR

181       The original Samba software and related utilities were created by
182       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
183       Source project similar to the way the Linux kernel is developed.
184
185       The original Samba man pages were written by Karl Auer. The man page
186       sources were converted to YODL format (another excellent piece of Open
187       Source software, available at ftp://ftp.icce.rug.nl/pub/unix/) and
188       updated for the Samba 2.0 release by Jeremy Allison. The conversion to
189       DocBook for Samba 2.2 was done by Gerald Carter. The conversion to
190       DocBook XML 4.2 for Samba 3.0 was done by Alexander Bokovoy.
191
192
193
194Samba 4.2                         06/19/2018                      NMBLOOKUP(1)
Impressum