If you cannot ping any websites and cannot get updartes or upgrades, you might have a nameserver issue. GI just installed a fresh copy of Ubuntu Server 12.04 and this has been an issue since I installed it. I did not know what to do, but I check the /etc/resolv.conf file and it was totally blank. The format for this should be (as a sample)
search mysite.biz
nameserver ROUTER
nameserver OTHER ROUTER
You might need to tweak this a bit, I just wrote the same router twice. Save the file, exit and voila! Internet connection again!

6 Years
Discussion Span
Last Post by PhilEaton

as an update, this file is SUPPOSED to be blank and is only used for non-static machines. it is automatically overwritten a every restart. to permanently fix this, edit /etc/network/interfaces and add the line 'dns-nameservers' or whatever you router ip happens to be, and save the file. restart networking '/etc/init.d/networking restart' and voila! internet!

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.