Package: ifupdown
Version: 0.6.8
Severity: normal
ifup does not pass on any nameserver options to scripts such as
000resolvconf in the ifup.d directory, despite dhclient (dhclient3?)
getting nameserver info in the lease it acquires. The result is that
resolveconf, at least, builds resolv.conf files with no nameserver info
in for an interface set in network/interfaces with
(fortunately resolveconf cacks up sufficiently often on its own that it
doesn't always replace the resolv.conf file anyway, thus obscuring the
problem, but that apart, it really ought to be fed the nameserver info!)
iface cable-BHAM inet dhcp
hostname betty
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
Trace as follows - IP addresses obscured. set -x added to 00resoveconf
to show that it receives no IP addresses of nameservers, although
dhclient supplies them.
% 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
Jan 15 21:50:18 betty kernel: [4309090.587000] e100: eth0: e100_watchdog:
link up, 100Mbps, full-duplex
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:d0:59:d7:97:70
Sending on LPF/eth0/00:d0:59:d7:97:70
Sending on Socket/fallback
DHCPDISCOVER on eth0 to XXX.YYY.ZZZ.WWW port 67 interval 4
DHCPOFFER from XXX.YYY.ZZZ.WWW
DHCPREQUEST on eth0 to XXX.YYY.ZZZ.WWW port 67
DHCPACK from XXX.YYY.ZZZ.WWW
addr=XXX.YYY.ZZZ.WWW, name=dynamicXXX.YYY.ZZZ.WWW.ac.uk
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: Entering directory `/etc/mail'
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 XXX.YYY.ZZZ.WWW -- renewal in 3193 seconds.
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` ** **
Reloading Mail Transport Agent (MTA): sendmail.
run-parts: executing /etc/network/if-up.d/uml-utilities
run-parts: executing /etc/network/if-up.d/wpasupplicant
All that empty stuff around the
R=
is 000resolvconf getting no data from the ifup call.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.17-2 (PREEMPT)
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 ifupdown depends on:
ii debconf [debconf-2.0] 1.5.17 Debian configuration management sy
ii libc6 2.7-5 GNU C Library: Shared libraries
ii lsb-base 3.1-24 Linux Standard Base 3.1 init scrip
ii net-tools 1.60-19 The NET-3 networking toolkit
ifupdown recommends no packages.
-- debconf information:
ifupdown/convert-interfaces:
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]