I have an interesting DNS issue in AD (2008R2) which I can't find a way to debug. Mainly if from commandline I try

ping <machinename>
then I get the reply that the hostr isn't found. But when I do
nslookup <machinename>
I get the correct response from my DNS with proper AAAA and A records. Anyone has an idea what could cause this?

The client machines run Windows 7 Enterprise.

link|improve this question
feedback

5 Answers

Make sure HOSTS and LMHOSTS doesn't have anything funny in it. nslookup works by talking directly to the DNS server, whereas the name resolution ping uses is done by the operating system. This means that your HOSTS file could be screwed, or there's corruption on Winsock etc etc.

Since we're playing with IPv4 and IPv6, what happens when you ping host -4 and ping host -6?

You may also want to turn off WINS/NetBIOS

alt text

link|improve this answer
feedback

Previous comments are right. I would simply add that there MAY be a sequence for name resolution. At least, this exists under Linux as a file named /etc/nsswitch. By default, a local HOST file will resolve names BEFORE invoking a name server. As for the actual IP addresses of the name servers, those are setup in Control Panel -> Network

Usually, the HOSTS file is located under C:\WINDOWS\SYSTEM32\DRIVERS\ETC

This file can be edited using notepad. I use this file all the time on the various virtual Windows servers I have.

link|improve this answer
feedback

I just had exactly the same issue. For me the issue was caused by having multiple DNS servers defined. My IPv4 settings were set to DHCP with the primary DNS set to my router and the secondary DNS set to a Google DNS server. Although the order doesn't matter.
When I switch to use the DNS server provided via DHCP the issue is resolved. Adding the DNS servers back brings back the issue.

I really don't understand the root cause of this. But maybe it's the same issue for you.

link|improve this answer
feedback

I've run into Vista systems caching null dns entries if a dns server was not available. Running "ipconfig /flushdns" cleared them out. Depending on what the root cause is this might only be a bandaid fix but have a look at disabling the caching of negative dns results. There are decent instructions here

link|improve this answer
feedback

Out of the box Windows 7 disables Ping response in Windows Firewall. You'll need to switch it on in all of the client machines. Not sure if this can be done via group policy. Here is how to do it on Vista, I'm guessing 7 is the same.

link|improve this answer
Well it is enabled, via some DirectAcces policies – DeeJay1 Jan 4 '10 at 13:24
From the question he says that the host isn't found, not that the request times out. It is a DNS resolution issue. – ta.speot.is Feb 7 '10 at 1:43
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.