[Samba] Found solution! (was RE: WINS querying (Advanced))

WEBSTER, Greg GWEBSTER at ahbl.ca
Wed Jun 19 14:02:07 GMT 2002


Solution to getting an IP address from a username via WINS.

Unfortunately, this incredibly simple syntax is documented nowhere. I was
only through guesswork that I found this (originally as 'nmblookup
gwebster\#03' - backslash not required inside single quotes)

It's all in the wording, of course:

 nmblookup 'gwebster#03'

...will return:
querying gwebster on 10.0.255.255
10.0.29.33 gwebster<03>

This is far preferable to get an IP address from a username than trying to
parse it out from smbstatus, as the latter requires that the user in
questions has a connected share.

Greg




More information about the samba mailing list