Wednesday, January 26, 2011 0 comments
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.
- In the network settings for TCP/IP, select Advanced settings.
- Select DNS tab
- Select Append these DNS Suffixes (in order) radio button.
- Click Add
- In the window popup, just add one . (dot), click OK to save it.
- Do this setting for both IPV4 and IPV6
- Save the settings.
This will solve the problem and now the host names are properly resolved.