[Bug 1067043] Re: resolvconf adds an empty "nameserver" record into /etc/resolv.conf

rob terhaar robbyt at robbyt.net
Tue Oct 16 14:22:23 UTC 2012


$ ls -l /etc/resolv.conf 
lrwxrwxrwx 1 root root 29 Feb 11  2012 /etc/resolv.conf -> ../run/resolvconf/resolv.conf


$ 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 66.185.16.130
nameserver 66.185.16.131
nameserver


$ ls -l /etc/default/resolvconf
ls: cannot access /etc/default/resolvconf: No such file or directory


$ ls -l /etc/resolvconf/resolv.conf.d
total 8
-rw-r--r-- 1 root root   0 Feb  1  2012 base
-rw-r--r-- 1 root root 151 Feb  1  2012 head
-rw-r--r-- 1 root root  26 Feb 11  2012 original


$ for F in /etc/resolvconf/resolv.conf.d/* ; do echo === $F === ; cat $F ; done
=== /etc/resolvconf/resolv.conf.d/base ===
=== /etc/resolvconf/resolv.conf.d/head ===
# 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
=== /etc/resolvconf/resolv.conf.d/original ===
nameserver 192.168.10.254


$ ls -l /run/resolvconf
total 4
-rw-r--r-- 1 root root   0 Oct 15 14:00 enable-updates
drwxr-xr-x 2 root root  60 Oct 15 14:00 interface
-rw-r--r-- 1 root root 212 Oct 15 15:46 resolv.conf


$ for F in /run/resolvconf/interface/* ; do echo === $F === ; cat $F ; done
=== /run/resolvconf/interface/br0.inet ===
nameserver 66.185.16.130
nameserver
nameserver 66.185.16.131


$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#	iface eth0 inet dhcp

auto eth0 
iface eth0 inet manual 

auto br0
iface br0 inet static
	address 199.195.144.32
	netmask 255.255.255.0
	network 199.195.144.0
	broadcast 199.195.144.255
	gateway 199.195.144.1 
	dns-nameservers 66.185.16.130 66.185.16.131
	bridge_ports eth0
	bridge_stp off
	bridge_fd 0
	bridge_maxwait 0


$ ls -l /run/network
total 4
-rw-r--r-- 1 root root 24 Oct 15 14:00 ifstate
-rw-r--r-- 1 root root  0 Oct 15 14:00 ifup.br0
-rw-r--r-- 1 root root  0 Oct 15 14:00 ifup.eth0
-rw-r--r-- 1 root root  0 Oct 15 14:00 ifup.lo
drwxr-xr-x 2 root root 40 Oct 15 14:00 static-network-up-emitted


$ cat /run/network/ifstate
br0=br0
lo=lo
eth0=eth0


$ cat /etc/NetworkManager/NetworkManager.conf
cat: /etc/NetworkManager/NetworkManager.conf: No such file or directory


$ dpkg -l resolvconf network-manager dnsmasq
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version             Description
+++-===================-===================-======================================================
un  dnsmasq             <none>              (no description available)
un  network-manager     <none>              (no description available)
ii  resolvconf          1.63ubuntu16        name server information handler


$ ps -elf | grep '\(Net\|dh\|dns\|ppp\|pptp\|vpn\)'
5 S 108       1401     1  0  80   0 -  6493 poll_s Oct15 ?        00:00:02 dnsmasq -u lxc-dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/lxc/dnsmasq.pid --conf-file= --listen-address 10.0.3.1 --dhcp-range 10.0.3.2,10.0.3.254 --dhcp-lease-max=253 --dhcp-no-override --except-interface=lo --interface=lxcbr0
0 S rob       1512  1327  0  80   0 -  2346 pipe_w 10:21 pts/0    00:00:00 grep \(Net\|dh\|dns\|ppp\|pptp\|vpn\)
5 S 106       1757     1  0  80   0 -  6493 poll_s Oct15 ?        00:00:03 /usr/sbin/dnsmasq -u libvirt-dnsmasq --strict-order --bind-interfaces --pid-file=/var/run/libvirt/network/default.pid --conf-file= --except-interface lo --listen-address 192.168.122.1 --dhcp-range 192.168.122.2,192.168.122.254 --dhcp-leasefile=/var/lib/libvirt/dnsmasq/default.leases --dhcp-lease-max=253 --dhcp-no-override
1 S root      2375  1516  0  80   0 -  1814 poll_s Oct15 ?        00:00:00 dhclient3 -e IF_METRIC=100 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -1 eth0
1 S root      2462  1673  0  80   0 -  1814 poll_s Oct15 ?        00:00:00 dhclient3 -e IF_METRIC=100 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -1 eth0
1 S root      2588  1672  0  80   0 -  1814 poll_s Oct15 ?        00:00:00 dhclient3 -e IF_METRIC=100 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases -1 eth0

-- 
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/1067043

Title:
  resolvconf adds an empty "nameserver" record into /etc/resolv.conf

Status in “resolvconf” package in Ubuntu:
  Incomplete

Bug description:
  My dns-nameservers config is set to:

  "dns-nameservers 66.123.123.130 66.123.123.131"

  However my /etc/resolv.conf looks like:

  "# 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 66.123.123.130
  nameserver 66.123.123.131
  nameserver
  "

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: resolvconf 1.63ubuntu16
  ProcVersionSignature: Ubuntu 3.2.0-32.51-generic 3.2.30
  Uname: Linux 3.2.0-32-generic x86_64
  ApportVersion: 2.0.1-0ubuntu13
  Architecture: amd64
  Date: Mon Oct 15 15:46:46 2012
  InstallationMedia: Ubuntu-Server 12.04 LTS "Precise Pangolin" - Alpha amd64+mac (20120211)
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: resolvconf
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions




More information about the foundations-bugs mailing list