Today I did the network upgrade from 11.10 to 12.04 on my desktop computer. Everything seemed to go well, but after restarting I was unable to access the Internet. Pinging a domain name returns "unknown host". I can ping IP addresses, however. I went into System Settings>Network Connections and made sure that the address for the DNS server is the same as on my netbook (which is still running Oneiric). I tried replacing /etc/NetworkManager/NetworkManager.conf with the old (Oneiric) version, then went back. After every change I did a restart. No luck. I'm sure there's a simple solution for this. What is it?
Announcement
Collapse
No announcement yet.
Lost DNS in upgrade to Precise
Collapse
This topic is closed.
X
X
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish
- Jul 2011
- 9524
- Seattle, WA, USA
- Send PM
One of the changes that Precise brings is the introduction of dnsmasq, configured as a local DNS cache. I've experimented with various ways of removing this, but the result always feels brittle. Ultimately, I ended up commenting out one line -- shown in bold -- in /etc/NetworkManager/NetworkManager.conf:
Code:steve@x1:~$ cat /etc/NetworkManager/NetworkManager.conf [main] plugins=ifupdown,keyfile [B]# dns=dnsmasq[/B] no-auto-default=F0:DE:F1:A5:AA:41, [ifupdown] managed=false
Code:steve@x1:~$ cat /etc/resolv.conf nameserver 4.2.2.1 nameserver 4.2.2.2 search local
- Top
- Bottom
-
Originally posted by SteveRiley View PostUltimately, I ended up commenting out one line -- shown in bold -- in /etc/NetworkManager/NetworkManager.conf:
Code:steve@x1:~$ cat /etc/NetworkManager/NetworkManager.conf [main] plugins=ifupdown,keyfile [B]# dns=dnsmasq[/B]
Originally posted by SteveRiley View PostNow, when I examine /etc/resolv.conf, I can see the DNS servers that I've configured my DHCP server (actually, my router) to supply:
Code:steve@x1:~$ cat /etc/resolv.conf nameserver 4.2.2.1 nameserver 4.2.2.2 search local
Code:#Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN.
- Top
- Bottom
Comment
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish
- Jul 2011
- 9524
- Seattle, WA, USA
- Send PM
I'll take another look tomorrow. Seem to recall another step, but will need to check bash history first.
- Top
- Bottom
Comment
-
Following these instructions, http://manpages.ubuntu.com/manpages/...olvconf.8.html, I added a "dns-nameservers" line to /etc/network/interfaces, and now the nameservers show up in resolv.conf, and I have Internet again.
- Top
- Bottom
Comment
-
My /etc/resolv.conf has the following:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search earthlink.net
Also, I added my ISP domain and DNS addresses in my TL-WR1043N wireless router.Last edited by Snowhog; Apr 29, 2012, 01:01 PM."A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
– John F. Kennedy, February 26, 1962.
- Top
- Bottom
Comment
-
My /etc/resolv.conf contains:
# Generated by NetworkManager
nameserver 127.0.0.1
My /etc/NetworkManager/NetworkManager.conf contains:
[main]
plugins=ifupdown,keyfile
dns=dnsmasq
no-auto-default=98:4B:E1:C4:95:02,
[ifupdown]
managed=false
Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Pan-Galactic QuordlepleenSo Long, and Thanks for All the Fish
- Jul 2011
- 9524
- Seattle, WA, USA
- Send PM
Originally posted by arist View PostFollowing these instructions, http://manpages.ubuntu.com/manpages/...olvconf.8.html, I added a "dns-nameservers" line to /etc/network/interfaces, and now the nameservers show up in resolv.conf, and I have Internet again.
Originally posted by Snowhog View PostMy /etc/resolv.conf contains:
---
My /etc/NetworkManager/NetworkManager.conf contains:
- Top
- Bottom
Comment
-
Originally posted by SteveRiley View PostThose are the expected configuration files when DHCP assigns IP addresses and you haven't made any changes to dnsmasq.Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
Comment
-
Originally posted by SteveRiley View PostAre you using static IP addresses defined in /etc/network/interfaces?
Those are the expected configuration files when DHCP assigns IP addresses and you haven't made any changes to dnsmasq.
Curious that Snowhog's resolv.conf is generated by NetworkManager, while GreyGeek's and mine are generated by resolvconf. Would that be because we use static IPs?
- Top
- Bottom
Comment
Comment