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] [-R] [-S] [-r] [-A] [-h] [-B <broadcast address>]
10        [-U <unicast address>] [-d <debug level>] [-s <smb config file>]
11        [-i <NetBIOS scope>] [-T] [-f] {name}
12

DESCRIPTION

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

OPTIONS

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

EXAMPLES

151       nmblookup can be used to query a WINS server (in the same way nslookup
152       is used to query DNS servers). To query a WINS server, nmblookup must
153       be called like this:
154
155       nmblookup -U server -R 'name'
156
157       For example, running :
158
159       nmblookup -U samba.org -R 'IRIX#1B'
160
161       would query the WINS server samba.org for the domain master browser (1B
162       name type) for the IRIX workgroup.
163

VERSION

165       This man page is correct for version 3 of the Samba suite.
166

SEE ALSO

168       nmbd(8), samba(7), and smb.conf(5).
169

AUTHOR

171       The original Samba software and related utilities were created by
172       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
173       Source project similar to the way the Linux kernel is developed.
174
175       The original Samba man pages were written by Karl Auer. The man page
176       sources were converted to YODL format (another excellent piece of Open
177       Source software, available at ftp://ftp.icce.rug.nl/pub/unix/) and
178       updated for the Samba 2.0 release by Jeremy Allison. The conversion to
179       DocBook for Samba 2.2 was done by Gerald Carter. The conversion to
180       DocBook XML 4.2 for Samba 3.0 was done by Alexander Bokovoy.
181
182
183
184Samba 3.6                         04/11/2016                      NMBLOOKUP(1)
Impressum