Can ping IP address and nslookup hostname but cannot ping hostname temporarily in Windows

Solution 1:

I faced the same problem in my network. When you use this command:

ping icecream

It uses WINS server since you have used icecream not icecream.my.domain.

When looking for such words, Windows looks for NETBIOS names, but when you look for complete domain records, it will look in the DNS server. You can use one of the solutions below:

  1. Make sure you have correct records for that station in your WINS server.
  2. Use the complete domain name instead of using the host file. E.g. icecream.my.domain

Solution 2:

You don't have DNS suffixes configured. Either configure them, or use FQDN like this and it should work:

ping icecream.my.domain

Solution 3:

I'm looking for a permanent solution to this problem. I don't just have a problem with ping icecream, but also ping icecream.my.domain. It doesn't happen all the time, just randomly on one computer. ipconfig /flushdns fixes it sometimes and rebooting work as well, but it's not a permanent solution.

I just tried this:

  • How to disable IP version 6

Based on this:

  • Windows 7 not registering IPv4 address in DNS