Linux command
nmblookup 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Lookup NetBIOS name
nmblookup [hostname]
Lookup with broadcast
nmblookup -B [192.168.1.255] [hostname]
Query specific WINS server
nmblookup -U [wins_server] [hostname]
Lookup IP address
nmblookup -A [192.168.1.100]
Show master browser
nmblookup -M -- -
List workgroup members
nmblookup -S [WORKGROUP]
Recursive query
nmblookup -R [hostname]
说明
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.
参数
- -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.
FAQ
What is the nmblookup command used for?
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.
How do I run a basic nmblookup example?
Run `nmblookup [hostname]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -B _ADDR_ do in nmblookup?
Broadcast address.