Windows – Why can’t the Browser resolve host, but ping and nslookup can

browserdnswindows

I'm a bit stumped by this problem. My machine can ping google.com and www.google.com successfully. I get correct ips like 74.125..

When I try to go to google in Firefox or IE or Chrome, I get a typical dns error page. For some reason, Safari is still working.

My first guess was a caching issue, but after clearing all browser caches I still see the problem. Second guess was that malware reconfigured my proxy settings, but no luck there either. Everything is set to "No proxy". I downloaded wireshark and the browser is querying my dns server.

Other sites resolve fine in all browsers. Everything seems to be working as expected but… Basically, I have run out of ideas on this one.

In response to comments:

  • IP directly in browser works, obviously. This is a DNS issue, not a connection issue.
  • Clearing the DNS cache in windows did not fix the problem. Checking the chrome internals shows that www.google.com could not be resolved.
  • My hosts file is clean (no entries).
  • Rebooting does not fix the problem.

Best Answer

For others without a virus: Your browser contains a DNS cache of its own. Try resolving the URL in Firefox or Edge. If you get a different result in Chrome, clear Chrome's DNS cache. Start here:

chrome://net-internals/#dns.

You'll have to copy/paste the link text into Chrome's onmibox. For more help, follow instructions here.

Clearing Chrome's cache causes no adverse effect.

Related Question