[Samba] WINS querying (Advanced)

Joel Hammer Joel at HammersHome.com
Wed Jun 19 12:49:02 GMT 2002


I would read man nmblookup and man smbclient.
smbclient -L winserver shows all the clients.
nmblookup netbiosname from the step above shows the ip address.
This doesn't seem to work for cross subnets,though, so you might have to
play with some other command line options.
Joel


On Wed, Jun 19, 2002 at 11:42:54AM -0700, WEBSTER, Greg wrote:
> 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 at 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. 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba




More information about the samba mailing list