nmblookup
nmblookup is used to query NetBIOS names and map them to IP addresses in a network using NetBIOS over TCP/IP queries. The options allow the name queries to be directed at a particular IP broadcast area or to a particular machine. All queries are done over UDP.[1]
Documentation
- man 1 'nmblookup' [EN]
Syntax
nmblookup [PARAMETER ...] HOST
Parameters
- -B ADDRESS
- Send the query to the given broadcast ADDRESS. Without this option the default behavior of nmblookup is to send the query to the broadcast address of the network interfaces as either auto-detected or defined in the interfaces parameter of the smb.conf file.
- -M
- Searches for a master browser by looking up the NetBIOS name name with a type of 0x1d. If name is - then it does a lookup on the special name __MSBROWSE__.
- NOTE:In order to use the name -, you need to make sure - isn't parsed as an argument, e.g. use: nmblookup -M -- -.
- -R
- Set the recursion desired bit in the packet to do a recursive lookup. This is used when sending a name query to a machine running a WINS server and the user wishes to query the names in the WINS server. If this bit is unset the normal (broadcast responding) NetBIOS processing code on a machine is used instead.
- -S
- Once the name query has returned an IP address then do a node status query as well. A node status query returns the NetBIOS names registered by a host.
References
- ↑ man 1 'nmblookup'