libsmbclient: Any way to resolve IP<->NetBIOS Name?

Gerald (Jerry) Carter jerry at samba.org
Tue Dec 13 14:30:36 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tim Hutt wrote:
> Hi.
> 
> Is there any way to resolve IP addresses to NetBIOS names or vice versa? I've 
> looked at the nmblookup code and it appears to use code internal to samba. I 
> want to do this just using libsmbclient, and there appears to be no way to do 
> it. I would have though it's a fairly common thing to do... Maybe I will just 
> have to spawn nmblookup for now, ugly as that is.

name_status_find().  Note that if you install libnss_wins.so, you can
just run gethostbyaddr().





cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDntsMIR7qMdg1EfYRAviOAJ4+v9eToEKl3fJOWzOi/Udv4tGOGACg3AcS
Vf+VB1JBkNazNHCR46xKAdI=
=m9Tv
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list