DNS responding only to nslookup in Windows 7

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.


Solution 1:

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