Get Computer Domain Name C. How to Get a Domain Name for Email Only. If for example youd like to find the host name of the local computer run SystemNETDNSGetHostByName null or SystemNETDNSGetHostByName.
I tried to find some mechanism to get the current machines NetBIOS domain name the machine domain not user domain but couldnt find anything in the usual places eg. Getting a machines NetBIOS domain name in C. Getiing IP address host name domain Name through c code.
March 11 2009 29 Comments.
This method is actually a DNS resolver and can be used to look up other host names as well. You can specify what type of computers should be return in the results by using the parameter servertype. To use this cmdlet you should have ActiveDirectory module installed as Get-ADDomain is part of this module. How to Get the IP Address of the Domain Name in C.