[Bug 1001881] Re: "nameserver 127.0.0.1" in resolv.conf causes failure of name resolution
janl
janl at langfeldt.net
Sun May 27 21:47:10 UTC 2012
So, installed resolvconf and with a bit more determination than just
"WTF that's wrong" I rebooted, logged in and netstat -lnp showed that
named was listening on port 53. Of course it is, I fiddle with DNS now
and again (http://www.amazon.co.uk/The-Concise-Guide-BIND-
guides/dp/0789722739/ref=sr_1_3) and it is _very_ handy if I suddenly
find myself in a place with broken DNS-resolution. Which still happens.
So, my local resolver uses the default root hints file and therefore
bypasses the local network firewalls dnsmasq server which serves up the
addresses to be used for the mail-server and other things at home.
But mostly I don't need it so I use the DNS-server provided by DHCP and
this is what I want unless I find myself somewhere where it is needed to
override it.
So the use of resolvconf short-circuits this setup, sends the queries to
the local BIND and it in turn buypasses the helpfull firewall dnsmasq.
Resulting in bypassing the DHCP given DNS-server. I guess bind9
satisfies some "resolver" dependency in resolvconf but then _still_
overrides the already configured named.conf on the host breaking the
admins assumptions about where to resolve things.
This will break on ubuntu servers that authoritative non-recursive name
servers.
I think resolvconf should only step in in this way if dnsmasq is running
and not if BIND is running since BIND could very well be non-recursive.
Or at the very least have a installation time question about this.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to resolvconf in Ubuntu.
https://bugs.launchpad.net/bugs/1001881
Title:
"nameserver 127.0.0.1" in resolv.conf causes failure of name
resolution
Status in “resolvconf” package in Ubuntu:
Incomplete
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://no.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: resolvconf (not installed)
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1001881/+subscriptions
More information about the foundations-bugs
mailing list