[Bug 1067043] Re: resolvconf adds an empty nameserver record into /etc/resolv.conf
[Expired for resolvconf (Ubuntu) because there has been no activity for 60 days.] ** Changed in: resolvconf (Ubuntu) Status: Incomplete = Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067043 Title: resolvconf adds an empty nameserver record into /etc/resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1067043] Re: resolvconf adds an empty nameserver record into /etc/resolv.conf
Hi Thomas, This server is colocation, and in production, so I cannot risk adjusting the networking config on a remote system. Sorry that I cannot be more helpful -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067043 Title: resolvconf adds an empty nameserver record into /etc/resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1067043] Re: resolvconf adds an empty nameserver record into /etc/resolv.conf
I speculate that the cause of this was a string-handling bug in the Precise version of ifupdown. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067043 Title: resolvconf adds an empty nameserver record into /etc/resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1067043] Re: resolvconf adds an empty nameserver record into /etc/resolv.conf
Hi rob. Can you please provide the extra information I requested? Without it we won't be able to solve the mystery of the empty nameserver line. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067043 Title: resolvconf adds an empty nameserver record into /etc/resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1067043] Re: resolvconf adds an empty nameserver record into /etc/resolv.conf
** Changed in: resolvconf (Ubuntu) Status: New = Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067043 Title: resolvconf adds an empty nameserver record into /etc/resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1067043] Re: resolvconf adds an empty nameserver record into /etc/resolv.conf
FIrst, I'd like to know exactly what /etc/network/if-up.d/000resolvconf is receiving in the IF_DNS_NAMESERVERS variable. Please apply the appended patch, down and up the br0 interface, confirm that /run/resolvconf/interface/br0.inet still contains nameserver 66.185.16.130 nameserver nameserver 66.185.16.131 and then post here the lines from /var/log/syslog that look like the following ones. Oct 22 22:26:38 myhost /etc/network/if-up.d/000resolvconf: 000 2e31 2e32 2e33 2034 2e35 2e36 2e37 0a38 Oct 22 22:26:38 myhost /etc/network/if-up.d/000resolvconf: 020 Second, what happens if you comment out the bridge_* options in the iface br0 stanza? Does the spurious nameserver line go away? -- Thomas --- 000resolvconf.orig 2012-10-22 22:27:21.187597692 +0200 +++ 000resolvconf 2012-10-22 22:26:18.867595028 +0200 @@ -25,6 +25,7 @@ R=${R}sortlist $IF_DNS_SORTLIST fi +echo $IF_DNS_NAMESERVERS | od -x | logger -t $0 for NS in $IF_DNS_NAMESERVERS ; do R=${R}nameserver $NS -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067043 Title: resolvconf adds an empty nameserver record into /etc/resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1067043] Re: resolvconf adds an empty nameserver record into /etc/resolv.conf
Well, you actually have to ifdown and ifup the interface (br0) to test properly. But since there are no non-printing characters on the dns- nameservers line I guess my hypothesis has been disproved. Hmm. ** Changed in: resolvconf (Ubuntu) Status: Incomplete = New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067043 Title: resolvconf adds an empty nameserver record into /etc/resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1067043] Re: resolvconf adds an empty nameserver record into /etc/resolv.conf
$ 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) ||/ NameVersion Description +++-===-===-== un dnsmasq none (no description available) un network-manager none (no description available) ii resolvconf 1.63ubuntu16name 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/000: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 Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067043 Title: resolvconf adds an empty nameserver record into /etc/resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com
[Bug 1067043] Re: resolvconf adds an empty nameserver record into /etc/resolv.conf
The empty nameserver line comes from /run/resolvconf/interface/br0.inet which was created by the script /etc/network/if-up.d/000resolvconf from the content of the IF_DNS_NAMESERVERS variable whose contents come from the dns- nameservers line in the iface br0 stanza of /etc/network/interfaces. My next guess is that the dns-nameservers line contains one or more non-printing characters between the first and the second listed IPv4 address. Can you please check? If there are such characters, what characters are they? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067043 Title: resolvconf adds an empty nameserver record into /etc/resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1067043] Re: resolvconf adds an empty nameserver record into /etc/resolv.conf
With VIM I turned on invisible characters, via `:set invlist` # 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$ #^Iiface eth0 inet dhcp$ $ auto eth0 $ iface eth0 inet manual $ $ auto br0$ iface br0 inet static$ ^Iaddress 199.195.144.53$ ^Inetmask 255.255.255.0$ ^Inetwork 199.195.144.0$ ^Ibroadcast 199.195.144.255$ ^Igateway 199.195.144.1 $ ^Idns-nameservers 66.185.16.130 66.185.16.131$ ^Ibridge_ports eth0$ ^Ibridge_stp off$ ^Ibridge_fd 0$ ^Ibridge_maxwait 0$ $ When I removed that space after the gateway setting in the interfaces config, and then reran `/etc/network/if-up.d/000resolvconf` the empty nameserver value did not go away. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067043 Title: resolvconf adds an empty nameserver record into /etc/resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1067043] Re: resolvconf adds an empty nameserver record into /etc/resolv.conf
Hmm, OK we'll have to look deeper. Please post the output of the following commands run in a terminal. ls -l /etc/resolv.conf cat /etc/resolv.conf ls -l /etc/default/resolvconf cat /etc/default/resolvconf ls -l /etc/resolvconf/resolv.conf.d for F in /etc/resolvconf/resolv.conf.d/* ; do echo === $F === ; cat $F ; done ls -l /run/resolvconf ls -l /run/resolvconf/interface for F in /run/resolvconf/interface/* ; do echo === $F === ; cat $F ; done cat /etc/network/interfaces ls -l /run/network cat /run/network/ifstate cat /etc/NetworkManager/NetworkManager.conf dpkg -l resolvconf network-manager dnsmasq ps -elf | grep '\(Net\|dh\|dns\|ppp\|pptp\|vpn\)' ** Changed in: resolvconf (Ubuntu) Status: New = Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067043 Title: resolvconf adds an empty nameserver record into /etc/resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1067043] Re: resolvconf adds an empty nameserver record into /etc/resolv.conf
** Description changed: 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.185.16.130 - nameserver 66.185.16.131 + 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 + TERM=xterm-256color + PATH=(custom, user) + LANG=en_US.UTF-8 + SHELL=/bin/bash SourcePackage: resolvconf UpgradeStatus: No upgrade log present (probably fresh install) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067043 Title: resolvconf adds an empty nameserver record into /etc/resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1067043] Re: resolvconf adds an empty nameserver record into /etc/resolv.conf
What's in /etc/resolvconf/resolv.conf.d/tail? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067043 Title: resolvconf adds an empty nameserver record into /etc/resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1067043] Re: resolvconf adds an empty nameserver record into /etc/resolv.conf
$ file /etc/resolvconf/resolv.conf.d/tail /etc/resolvconf/resolv.conf.d/tail: ERROR: cannot open `/etc/resolvconf/resolv.conf.d/tail' (No such file or directory) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067043 Title: resolvconf adds an empty nameserver record into /etc/resolv.conf To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/resolvconf/+bug/1067043/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs