nmblookup
TLDR
Lookup NetBIOS name
SYNOPSIS
nmblookup [-B broadcast] [-U unicast] [-A] [-M] [options] name
DESCRIPTION
nmblookup queries NetBIOS names and resolves them to IP addresses. It's the NetBIOS equivalent of nslookup for DNS.
NetBIOS name resolution predates DNS in Windows networks. Machines register names on the network, and nmblookup finds their IP addresses.
Broadcast mode sends queries to the local network segment. WINS (Windows Internet Name Service) provides network-wide resolution through a server.
Node status queries (-A) reveal all registered NetBIOS names for a host. This shows shared resources, workgroup membership, and service names.
Master browser queries find the computer managing browse lists for a workgroup. This is useful for diagnosing network browsing issues.
The tool integrates with Samba configuration, using smb.conf settings for defaults.
PARAMETERS
-B ADDR
Broadcast address.-U ADDR
Unicast address (WINS server).-A
Node status query (reverse lookup).-M
Search for master browser.-R
Recursive query through WINS.-S
Return full node status.-d LEVEL
Debug level.-s FILE
Smb.conf file location.-r
Use /etc/hosts.-T
Translate to DNS names.--usage
Show usage.
CAVEATS
NetBIOS is legacy technology. Broadcast queries only reach local subnet. WINS servers are increasingly rare. Modern networks prefer DNS.
HISTORY
nmblookup is part of the Samba suite, developed by Andrew Tridgell and the Samba Team since the 1990s. It provides Unix/Linux tools for interoperating with Windows networks.


