Mapping between domain NetBIOS name and DNS name ?
Gerald (Jerry) Carter
jerry at samba.org
Mon Aug 11 07:14:21 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 7 Aug 2003, Yuquan Jiang wrote:
> Hi,
>
> Does anyone know how to lookup a domain's DNS name with its NetBIOS name ?
> And how to do the reverse?
You can also query AD (don't rememberthe exact atribute) or you can use
the DsRoleGetPrimaryDomainInfo(). To locate a DC, refer to get_dc_name()
in libsmb/namequery_dc.c
cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: For info see http://quantumlab.net/pine_privacy_guard/
iD8DBQE/N0JRIR7qMdg1EfYRAgbTAJ9chomvN6kBT53/+xcjSnmX5HyNLwCfeI/L
XYyHrLMwFqmWSEa7dTsZKOE=
=BE6o
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list