"nameserver 127.0.0.1" in resolv.conf causes failure of name resolution
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
resolvconf (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
This has happened a number of times both with some laptops. When they get up resolv.conf contains this:
$ cat /etc/resolv.conf
# 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 langfeldt.net
This is nowhere like right and makes it impossible to get name-resolution. When I remove resolvconf everything works right. This is right:
$ cat /etc/resolv.conf
# Generated by NetworkManager
domain langfeldt.net
search langfeldt.net
nameserver 192.168.1.1
(except that domain and search should not appear in the same resolv.conf file).
# apt-cache policy resolvconf
resolvconf:
Installed: (none)
Candidate: 1.63ubuntu11
Version table:
1.63ubuntu11 0
500 http://
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: resolvconf (not installed)
ProcVersionSign
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Sun May 20 11:00:20 2012
ProcEnviron:
LANGUAGE=
TERM=xterm
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: resolvconf
UpgradeStatus: Upgraded to precise on 2012-05-20 (0 days ago)
Changed in resolvconf (Ubuntu): | |
status: | Invalid → Incomplete |
This is actually the expected configuration. The fact that you don't get working DNS resolving might be caused by bug 993379 which should get resolved with the next batch of Network Manager updates (workaround is to reconnect to the network post-boot).
You can learn more about the DNS changes here: http:// www.stgraber. org/2012/ 02/24/dns- in-ubuntu- 12-04/ (linked from the official Ubuntu release notes).