Linux Showroom

My daily dosis of linux usage

DNS does not resolve www.google.com - quick fix

Posted in Howto by Fabio on the December 5th, 2007

Surfing the web today and already yesterday in some cases one website wouldn´t load: www.google.com. This makes it difficult to login to Google AdWords and impossible to login to AdSense. For searching I can use the localized version www.google.de. That works just fine. But I use my browser´s (Mozilla Firefox) integrated search box quiet frequently. Using Google there leads to the .com version. www.google.com is working just fine (When did they have their last downtime? Did they ever have one?) so things with the DNS (Domain Name System) could be messed up. The system does not find an ip address for the url www.google.com anymore. The solution could be to set a fixed ip address for the url. This is also good for having local urls, e.g. my.system.

Would you need to do is edit the file /etc/hosts with an editor of your choice. As you need root rights you probably have to do this using a shell. Try vim, joe, emac or whatever you prefer.

Add a line

209.85.135.103 www.google.com

to your hosts file and you are ready to load Google in your browser again.

Leave a Reply