how to discover all netbios scopes on a LAN?

David Wuertele dave-gnus at
Wed Oct 22 18:40:03 GMT 2003

I would like my application to be able to enumerate all the netbios
scopes that are in use on the LAN.

I thought that I might be able to do it by using NBSTAT request
packets (nmblookup -S <IP ADDR>), but apparently NBSTAT replies only
return names in the netbios scope given in the NBSTAT request.  If I
don't know what netbios scopes are available, I won't be able to use
NBSTAT to discover them :-(

How can my app discover all the netbios scopes in use on the LAN?


More information about the samba-technical mailing list