[Samba] WINS querying (Advanced)
Jim Watt
wattjg at appliedbiosystems.com
Wed Jun 19 12:54:04 GMT 2002
--On 06/19/2002 11:42 AM -0700 WEBSTER, Greg wrote:
} If, for example, I am looking for the IP address for the user 'gwebster',
} what steps do I need to take to retreive this from the WINS server?
"nmblookup" can do that. A live example of me looking up my login
name, returning the machine I'm logged in on:
>nmblookup -U ussjodns01 -R "jimw#3"
querying jimw on 167.116.93.31
167.116.93.181 jimw<03>
There's an example in the manpage for nmblookup.
All the WINS registered tags are enumerated and explained in the
Microsoft Knowledge Base article q119495.
} I am capable of
} writing some Perl scripts to connect to port 139 on a WINS server, but I
} don't know the 'handshake' or 'dialog' or 'conversation' that I will have to
} have with that port to get the information I want.
It's all there in the Samba sources. :-)
Jim
--
Jim Watt wattjg at appliedbiosystems.com
Applied Biosystems Voice (desk): +1 408 577 2228
3833 North First Street Fax: +1 408 894 9307
San Jose CA 95134-1701 Voice (main): +1 408 577 2200
More information about the samba
mailing list