In short - How do I translate a NETBIOS domain to a FQDN ?
Details: Assuming I'm in domain A and I have user credentials for domain B which has a trust relationship with domain A (I can authenticate the credentials). How do I get domain B's FQDN when all I have are the credentials of some authenticated user from that domain, including the netbios domain name?
I'm coding in C# but a COM/WMI/Win32 solution would be welcomed as well.
This probably isn't optimal, but it look like you could do a NetBIOS name query to get an IP address, and then do a reverse DNS lookup to get an FQDN from that...
http://www.protocolbase.net/protocols/protocol_NBNS.php
(The reverse DNS step is easy to look up)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With