C# find if dns is exist on dns server (from Domain controller) -
i want check if dns record exist on domain controller. example: if want ro check i have host "guest_pc" on dns server on work domain.
the following example queries dns database information on host www.contoso.com.
using system.net; iphostentry hostinfo = dns.gethostbyname("www.contoso.com"); static string ip = dns.gethostname(); refer https://msdn.microsoft.com/en-us/library/system.net.dns(v=vs.110).aspx more information.
Comments
Post a Comment