Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Translating NETBIOS domain into a FQDN (Fully Qualified Domain Name)

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.

like image 847
LiorE Avatar asked Nov 04 '08 16:11

LiorE


1 Answers

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)

like image 109
Mike G. Avatar answered Sep 28 '22 07:09

Mike G.