Today I've recognized strange behaviour of our DNS-System, if I make a DNS reverse lookup for the server srvdefiler1
with System.net.dns.gethostentry("10.10.1.54")
(done within powershell if it matters, .Net 4.5) it returns
following record:
Hostname: srvdedc3.de.xxx.ag
AddressList: {10.10.1.32}
Which is our Domaincontroller running DNS-Service, too.
Because of the fact that there is no DNS-Entries for srvdefiler1
nor a reverse DNS ptr, I expected that the method throws a SocketException
.
By the way:
nslookup 10.10.1.54
returnsNon-existent domain.
ping -a
shows an alias of our Domaincontroller (which is strange for me too)
I think that there is something wrong with our DNS/Netbios configuration on fileserver or domaincontroller.
But I couldn't find any issues, it's the only server which returns unexpected record.
Any suggestions to solve this problem or help to find the problem? Is there any other clear code to do a reverse DNS lookup in .net / powershellscript which exactly works like nslookup ?