API call needed for WINS queries

Gerald (Jerry) Carter jerry at samba.org
Mon May 9 14:58:01 GMT 2005


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

Maier, Thomas wrote:
| Hello,
|
| I search for a way to do WINS queries like
| DNS queries (with gethostbyname()).
|
| libsmbclient seems not to support such things.
|
| Is there a WINS API available?

If you install libnss_wins.so, then gethostbyname()
will support the WINS queries.  Internally, we use a
function called resolve_name().  I don't know if that
is exported to libsmbclient consumers though.




cheers, jerry
=====================================================================
Alleviating the pain of Windows(tm)      ------- http://www.samba.org
GnuPG Key                ----- http://www.plainjoe.org/gpg_public.asc
"I never saved anything for the swim back."     Ethan Hawk in Gattaca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCf3p5IR7qMdg1EfYRAod1AKCqbbKie6CYCShHE5O/zVgy08TbNwCgzGSE
RTblwoNS5tXfnlZsZv1HUmY=
=iHhM
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list