[Samba] WINS querying (Advanced)

WEBSTER, Greg
Wed, 19 Jun 2002 11:48:03 -0000

Hi all...

I need to make a few queries to WINS, but am unsure how to do so.
'nmblookup' will allow me to enter an IP address and get information
about
the machine name, domain, and username. I want to do the opposite...I would
like to have a tool that will take a username and return the IP address.

I know this information is stored in WINS somehow, and 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.

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?

Thanks,

Greg Webster
Systems Administrator
Alexander Holburn Beaudin & Lang
Barristers & Solicitors
2700 - 700 W. Georgia St.
Vancouver, BC V7Y 1B8
Phone: (604) 688-1351
Direct: (604) 643-2146
Fax: (604) 669-7642

Email: gwebster@ahbl.ca
Firm Web Site: http://www.ahbl.ca

WARNING - CONFIDENTIALITY NOTICE
This e-mail message and any attachments thereto are intended solely for the
use of the individual or entity to whom it is addressed and contains
information that is confidential and may be privileged and exempt from
disclosure. Any distribution, copying or disclosure is strictly prohibited.
If you have received this e-mail in error, please notify the sender
immediately by return email and delete the message unread without making any
copies. Thank you.