I get a lot of random “Server Not Found” errors while browsing from my home connection:
In Chrome, the error is:
The server at http://www.google.com can’t be found, because the DNS lookup failed. DNS is the network service that translates a website’s name to its Internet address. This error is most often caused by having no connection to the Internet or a misconfigured network. It can also be caused by an unresponsive DNS server or a firewall preventing Google Chrome from accessing the network.
After a lot of frustration and some digging around I discovered that this was caused by my ISP’s flaky DNS servers.
It turns out that our friend Google has a free service called Google Public DNS that I can use in place of my ISP’s flaky servers:
There are actually more legitimate uses for Google Public DNS:
Now ever so often my ISP will terminate my session and I have to log in via a web interface, which doesn’t come up properly if I’m using Google’s public DNS servers. So then I have to switch my ISP’s DNS servers:
All this switching can be quite a pain, but it can be automated. There is a command line tool called netsh.exe that can be used to modify the network configuration.
So I created two batch files, one for switching to Google’s DNS servers…
netsh interface ip set dns "Wireless Network Connection 6" static 188.8.131.52 primary netsh interface ip add dns "Wireless Network Connection 6" 184.108.40.206
…and one for switching back to my ISPs DNS servers…
netsh interface ip set dns "Wireless Network Connection 6" source=dhcp