9

I have been using Precise for a few weeks now for work with no problem. Today, I am not able to access any website using either wired or wireless connections.

I installed the updates today which included nautilus, xserver, and a new kernel (3.2.0-24). After restarting I no longer was able to browse the Internet using firefox or chrome.

Trying to ping google in terminal gives

ping: unknown host google.ca

I have tried:

  • Connecting to wireless or wired networks (both working on other machines)
  • Restart the machine and boot with previous Kernel
  • Manually configure opendns on my wired connection
  • Restart the network and the laptop and the wireless card

Without any success so far. I am not sure where to go next. Please let me know the cause of the issue or help me troubleshoot it.

Note that the laptop does receive an ip address, and it can ping ip address of google.ca (74.125.127.94) but not the domain name, or any domain name for that matter.

This system was upgraded from 11.10 to 12.04 more two weeks ago.

Aras
  • 819

1 Answers1

14

Ok after trying several different things, and reading this post on DNS changes in Precise Pangolin I decided to go ahead and remove resolv.conf, actually I moved it:

 sudo mv /etc/resolv.conf /etc/backup.resolv.conf

In case I need it back. After doing this, dns resolution works and its faster too. The resolv.conf file was not regenerated instead there is now a folder in /etc/resolvconf which I believe contains DNS configuration files.

I am not able to explain the cause of this issue, so if you have some insight in this problem, please feel free to add your solution+explanation about what is happening here.

jdthood
  • 12,467
Aras
  • 819
  • 1
    Sorry, I was thinking about cause not quick fix .. I think it may relate to your earlier reboot (rather than the updates), but nothing definitive. – david6 May 26 '12 at 05:39
  • 2
    I just moved the file, and dns resolution started working. No need to reboot. – Marcel Valdez Orozco Jul 30 '12 at 03:51
  • you are right, I edited the post and removed the reference to restarting. Still it is strange that we have to do this. – Aras Jul 30 '12 at 06:21
  • 3
    This sadly, happens to me constantly and your solution makes it work everytime, thank you Aras. – LEOPiC Aug 29 '12 at 15:17
  • 1
    The files in /etc/resolvconf are configuration files for the resolvconf utility which is supposed to be maintaining a correct resolv.conf file at all times. If your resolv.conf was incorrect then either resolvconf was misconfigured, or an interface configurer (ifup, NetworkManager, etc.) was misconfigured, or you are running some third-party software which futzes with /etc/resolv.conf. – jdthood Oct 29 '12 at 13:48
  • In Ubuntu 13.04 I had the same problem, but I had to move the folder /etc/resolvconf to fix it. Thank you! – Hypercube Aug 31 '13 at 13:36
  • I had to run sudo service network-manager restart to get it working after moving the file – bernie2436 Feb 19 '14 at 12:56
  • Thanx a lot. I am in the middle of an Oracle course and couldn't connect to the VPN until I did that (I googled on another machine).
  • – Tulains Córdova Jan 20 '15 at 18:19