Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

After my upgrade to 12.10, DNS resolution seems to fail for both local and external addresses. I can successfully ping local and external IP addresses (google.com, at least), but pinging DNS names immediately returns ping: unknown host <hostname>. Connection Information seems to list the correct DNS servers (which I can ping successfully), and changing to Google Public DNS produces similar results. What should I fuss with to try to fix this?

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

Change 127.0.0.1 to 127.0.1.1 in /etc/resolv.conf

share|improve this answer
    
It looks like that worked. I was under the impression resolv.conf is generated automatically. This edit isn't going to get wiped out some day, is it? –  fourwood Oct 19 '12 at 21:13
    
That is going to get wiped out on reboot. –  tgm4883 Oct 21 '12 at 16:34
    
Yeah not a good solution. –  bkerensa Oct 22 '12 at 9:10
    
dpkg-reconfigure bind9-host reboot. –  Brandon Bertelsen Oct 24 '12 at 3:05
    
If you have resolvconf installed then you should not edit /etc/resolv.conf, and if you do edit /etc/resolv.conf your edits will get overwritten. But if you have resolvconf installed then you don't have the problem in the first place, because NetworkManager registers the correct address, 127.0.1.1, with resolvconf which writes it into resolv.conf. –  jdthood Nov 1 '12 at 13:37
add comment

Looks like this is a known issue:

Launchpad bug#1051348

The instructions there worked for me

share|improve this answer
add comment

In a terminal, run

sudo apt-get install resolvconf # in case it got removed
sudo dpkg-reconfigure resolvconf # to restore the symlink at /etc/resolv.conf

then reboot.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.