Suresh Payankannur

Wednesday, January 26, 2011

nslookup works, but ping etc. fails on Windows 7

Ran into a strange problem. I had setup DNSMasq and added hosts with static IP addresses on the LAN. This will allow me to resolve the host names within the LAN properly, without going to each machine and adding them to the /etc/hosts. Everything looked fine from my iMac. But on Windows 7, the nslookup resolves the host name and returns the correct IP address. But all other network operations, like ping, tracert etc. comes back with error, unkown host. After spending some time googling, the following steps fixed the issue. Looks like this is because single label names (without any domain) do not use DNS. They use NetBIOS Name Service. So the trick is to force a DNS lookup.

  1. In the network settings for TCP/IP, select Advanced settings.
  2. Select DNS tab
  3. Select Append these DNS Suffixes (in order) radio button.
  4. Click Add
  5. In the window popup, just add one . (dot), click OK to save it.
  6. Do this setting for both IPV4 and IPV6
  7. Save the settings.
This will solve the problem and now the host names are properly resolved.

1 comment:

  1. Has anyone sampled the various product mentioned here, and can they tell which one is the best?:-)


Blog Archive

Scroll To Top