[Resolvconf-devel] Bug#460876: 000resolvconf fails to get env vars from ifup with dhcp

Peter T. Breuer ptb at inv.it.uc3m.es
Tue Jan 15 12:51:25 UTC 2008


Package: resolvconf
Version: 1.37
Severity: normal



000resolvconf does not get dns servers from the dhcp stanza in 
/etc/networks when ifup is run.

The trace is this (I put a set -x in 000resolvconf):

(IP addresses obscured)

% sudo ifup -v eth0=cable-BHAM
Configuring interface eth0=cable-BHAM (inet)
ifconfig $IFACE down || true
route del default || true
ifconfig $IFACE XXX.YYY.ZZZ.WWW || true
run-parts --verbose /etc/network/if-pre-up.d
run-parts: executing /etc/network/if-pre-up.d/bridge
run-parts: executing /etc/network/if-pre-up.d/hostapd
run-parts: executing /etc/network/if-pre-up.d/uml-utilities
run-parts: executing /etc/network/if-pre-up.d/wireless-tools
run-parts: executing /etc/network/if-pre-up.d/wpasupplicant

dhclient3 -pf /var/run/dhclient.eth0.pid -lf
/var/lib/dhcp3/dhclient.eth0.leases eth0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:AA:BB:CC:DD:EE
Sending on   LPF/eth0/00:AA:BB:CC:DD:EE
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPOFFER from XXX.YYY.ZZZ.WWW
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from XXX.YYY.ZZZ.WWW
Nameserver not running
XXX.YYY.ZZZ.WWW PTR record not found, try again
addr=XXX.YYY.ZZZ.WWW,            name=
Updating databases ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Updating Makefile ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/Makefile...
Updating sendmail.cf ...
Creating /etc/mail/relay-domains
# Optional file...
The following file(s) have changed:
  /etc/mail/sendmail.cf

** ** You should issue `/etc/init.d/sendmail reload` ** **
make: Leaving directory `/etc/mail'
Reloading Mail Transport Agent (MTA): sendmail.
bound to 147.188.200.200 -- renewal in 2976 seconds.
cat /etc/resolv.conf-bham | resolvconf -a ${IFACE} || true
run-parts --verbose /etc/network/if-up.d
run-parts: executing /etc/network/if-up.d/000resolvconf
+ '[' -x /sbin/resolvconf ']'
+ case "$ADDRFAM" in
+ :
+ R=
+ '[' '' ']'
+ '[' '' ']'
+ '[' '' ']'
+ echo -n ''
+ /sbin/resolvconf -a eth0.inet
run-parts: executing /etc/network/if-up.d/50guarddog
run-parts: executing /etc/network/if-up.d/51guidedog
run-parts: executing /etc/network/if-up.d/mountnfs
run-parts: executing /etc/network/if-up.d/ntp
run-parts: executing /etc/network/if-up.d/ntpdate
run-parts: executing /etc/network/if-up.d/openssh-server
run-parts: executing /etc/network/if-up.d/sendmail
Updating sendmail.cf ...
Creating /etc/mail/relay-domains
# Optional file...
The following file(s) have changed:
  /etc/mail/sendmail.cf
  ** ** You should issue `/etc/init.d/sendmail reload` ** 

The /etc/network/interfaces stanza is

  iface cable-BHAM inet dhcp
    hostname betty
    dns-nameserver 127.0.0.1 XXX.YYY.ZZZ.WWW XXX.YYY.ZZZ.WWW 
    pre-up ifconfig $IFACE down || true
    pre-up route del default || true
    pre-up ifconfig $IFACE XXX.YYY.ZZZ.WWW || true
    down route del default || true
    down route add default dev dummy0 || true
    down route del -net localnet/24 dev $IFACE || true
    post-down ifconfig $IFACE down || true


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.17-2-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash

Versions of packages resolvconf depends on:
ii  coreutils                     5.97-5.3   The GNU core utilities
ii  debconf [debconf-2.0]         1.5.17     Debian configuration management sy
ii  lsb-base                      3.1-24     Linux Standard Base 3.1 init scrip

resolvconf recommends no packages.

-- debconf information:
  resolvconf/bad-pppoeconf-hook:
  resolvconf/downup-interfaces:
  resolvconf/link-tail-to-original: false
  resolvconf/bad-pppconfig-hook:
  resolvconf/linkify-resolvconf: true
  resolvconf/disable-bad-hooks: true
  resolvconf/bad-xisp-hook:





More information about the Resolvconf-devel mailing list