resolvconf ignoring dns-nameservers, dns-search in iface-stanzas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
resolvconf (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Install Ubuntu 11.04 (or 11.10, 12.04), leave interfaces configured by dhcp, then change interface configuration to static, adding dns-nameservers and dns-search lines to have resolvconf configure "/etc/resolv.conf".
Awaited result:
"/etc/
Real result:
empty "/etc/resolv.conf".
Reproduceable:
always.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: resolvconf 1.48ubuntu1
ProcVersionSign
Uname: Linux 2.6.38-10-generic x86_64
Architecture: amd64
Date: Tue Jan 3 14:44:09 2012
InstallationMedia: Ubuntu-Server 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.2)
PackageArchitec
ProcEnviron:
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: resolvconf
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in resolvconf (Ubuntu): | |
status: | Confirmed → Incomplete |
Changed in resolvconf (Ubuntu): | |
status: | Incomplete → Fix Released |
Interface configuration: interfaces:
/etc(network/
auto eth0
iface eth0 inet static
address 192.168.180.73
netmask 255.255.254.0
dns-nameservers 192.168.180.28 192.168.181.28
dns-search mydomain.example
auto eth1
iface eth1 inet static
address 213.13.12.73
netmask 255.255.254.0
gateway 213.13.12.1
dns-nameservers 192.168.180.28 192.168.181.28
dns-search mydomain.example
----
/etc/resolv.conf after rebooting:
# 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
----
This empty file breaks nearly everything ...!
/etc/resolv.conf is a symlink as expected: /run/resolv. conf
#ls -l /etc/resolv.conf
lrwxrwxrwx 1 root root 31 Jan 3 14:53 /etc/resolv.conf -> /etc/resolvconf
----
/etc/default/ resolvconf:
doesn't exist.