Comment 21 for bug 448095

Revision history for this message
TrReardon (tr-reardon) wrote : Re: [Bug 448095] Re: resolvconf starts after ifupdown, does not pick the dns-nameserver and dns-search lines up from /etc/network/interfaces

I've tried your fix Sander and it sort of works. Which is to say that
resolvconf properly runs at boot. HOWEVER, it does not run correctly on
ifdown/ifup:

$ sudo ifdown eth0
[sudo] password for reardon:
resolvconf: Error: /lib/init/rw/resolvconf/interface is not a directory
resolvconf: Error: /lib/init/rw/resolvconf/interface is not a directory
run-parts: /etc/network/if-down.d/resolvconf exited with return code 1
There is already a pid file /var/run/dhclient.eth0.pid with pid 1166
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.1.2
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:1d:92:a0:77:90
Sending on LPF/eth0/00:1d:92:a0:77:90
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.0.1 port 67
resolvconf: Error: /lib/init/rw/resolvconf/interface is not a directory
 * Reloading /etc/samba/smb.conf smbd only
   ...done.

$ sudo ifup eth0
Internet Systems Consortium DHCP Client V3.1.2
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:1d:92:a0:77:90
Sending on LPF/eth0/00:1d:92:a0:77:90
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPOFFER of 192.168.0.198 from 192.168.0.1
DHCPREQUEST of 192.168.0.198 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.198 from 192.168.0.1
 * Reloading /etc/samba/smb.conf smbd only
   ...done.
resolvconf: Error: /lib/init/rw/resolvconf/interface is not a directory
bound to 192.168.0.198 -- renewal in 2147483648 seconds.
resolvconf: Error: /lib/init/rw/resolvconf/interface is not a directory
run-parts: /etc/network/if-up.d/000resolvconf exited with return code 1

+Reardon

On Thu, Dec 24, 2009 at 6:47 AM, Sander van Grieken <sander@3v8.net> wrote:

> but still, this is probably not the bug you suffer from..
>
> --
> resolvconf starts after ifupdown, does not pick the dns-nameserver and
> dns-search lines up from /etc/network/interfaces
> https://bugs.launchpad.net/bugs/448095
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “ifupdown” package in Ubuntu: Won't Fix
> Status in “resolvconf” package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: resolvconf
>
> ifdown -a ; ifup -a fixes the problem after a reboot.
>
> ProblemType: Bug
> Architecture: i386
> Date: Sat Oct 10 17:55:06 2009
> DistroRelease: Ubuntu 9.10
> Package: resolvconf 1.44ubuntu1
> PackageArchitecture: all
> ProcEnviron:
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> ProcVersionSignature: Ubuntu 2.6.31-13.43-generic
> SourcePackage: resolvconf
> Uname: Linux 2.6.31-13-generic i686
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/448095/+subscribe
>
>