[pkg-dhcp-devel] Bug#773749: isc-dhcp-client: no longer updates /etc/resolv.conf
Vincent Lefevre
vincent at vinc17.net
Mon Dec 22 21:38:36 UTC 2014
Package: isc-dhcp-client
Version: 4.3.1-5
Severity: grave
Justification: renders package unusable
[Well, correction can be done manually, but this is really annoying.]
I've been using wicd to connect via WiFi for years, and this has
always worked, but now the /etc/resolv.conf file is no longer
updated. The /etc/wicd/dhclient.conf.template file is used by
wicd and contains here (this is the default + the prepend line):
------------------------------------------------------------------------
# If you're reading this, you're probably reading either:
# /etc/wicd/dhclient.conf.template.default
# or
# /etc/wicd/dhclient.conf.template
# or
# a generated dhclient configuration in /var/run
# (these files could be in different locations, as determined by your
# packager or system administrator, but those are the default pathes)
#
# Here's what you need to know:
# The .default file is copied by wicd to dhclient.conf.template if
# dhclient.conf.template does not exist. If dhclient.conf.template
# does exist, the .default file is not used. This is to allow
# upgrades of the package without destroying user changes.
#
# In other words, if you want to change the generated dhclient
# configuration, you need to change dhclient.conf.template,
# NOT dhclient.conf.template.default
# wicd will replace $_HOSTNAME in the following line with
# the appropriate hostname for this system
send host-name "$_HOSTNAME";
# Prepend the local DNS server (BIND), but also Google DNS servers,
# as BIND times out on network congestion.
prepend domain-name-servers 127.0.0.1, 8.8.8.8, 8.8.4.4;
------------------------------------------------------------------------
As you can see, there is a prepend line, but the /etc/resolv.conf
file was still unmodified (last modified on 2014-09-30 00:39:52),
with incorrect settings ("nameserver 192.168.1.1" only). I had to
modify it manually.
/var/log/syslog says about dhclient:
Dec 22 21:39:18 xvii dhclient: Internet Systems Consortium DHCP Client 4.3.1
Dec 22 21:39:18 xvii dhclient: Copyright 2004-2014 Internet Systems Consortium.
Dec 22 21:39:18 xvii dhclient: All rights reserved.
Dec 22 21:39:18 xvii dhclient: For info, please visit https://www.isc.org/software/dhcp/
Dec 22 21:39:18 xvii dhclient:
Dec 22 21:39:18 xvii dhclient: Listening on LPF/wlan0/00:21:6a:47:b3:80
Dec 22 21:39:18 xvii dhclient: Sending on LPF/wlan0/00:21:6a:47:b3:80
Dec 22 21:39:18 xvii dhclient: Sending on Socket/fallback
Dec 22 21:39:18 xvii dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
Dec 22 21:39:20 xvii dhclient: DHCPREQUEST on wlan0 to 255.255.255.255 port 67
Dec 22 21:39:20 xvii dhclient: DHCPOFFER from 192.168.0.1
Dec 22 21:39:20 xvii dhclient: DHCPACK from 192.168.0.1
Dec 22 21:39:20 xvii dhclient: bound to 192.168.0.6 -- renewal in 124409 seconds.
Note: resolvconf is installed, but the files in the /etc/resolvconf
directory have old timestamps:
-rw-r--r-- 1 481 2013-02-06 20:55:06 interface-order
-rw-r--r-- 1 0 2012-09-10 11:55:45 resolv.conf.d/base
-rw-r--r-- 1 151 2012-09-10 11:55:45 resolv.conf.d/head
-rw-r--r-- 1 72 2012-10-21 13:51:50 resolv.conf.d/original
-rw-r--r-- 1 0 2012-10-21 14:45:20 resolv.conf.d/tail
lrwxrwxrwx 1 15 2012-10-21 14:45:12 run -> /run/resolvconf/
-rwxr-xr-x 1 249 2009-01-28 03:59:31 update-libc.d/avahi-daemon*
-rwxr-xr-x 1 426 2012-04-27 17:54:50 update-libc.d/postfix*
-rwxr-xr-x 1 3195 2012-09-10 11:55:45 update.d/dnscache*
-rwxr-xr-x 1 4624 2013-02-06 20:55:06 update.d/libc*
thus have not been modified for a long time.
/run/resolvconf/resolv.conf was modified on 2014-12-22 21:39:20 and
contains correct settings:
# 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 127.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
but isn't taken into account, since /etc/resolv.conf is not a symlink
to it (I don't know why, but it was a symlink in the past).
So, it appears that dhclient modifies the wrong file.
-- System Information:
Debian Release: 8.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages isc-dhcp-client depends on:
ii debianutils 4.4+b1
ii iproute2 3.16.0-2
ii isc-dhcp-common 4.3.1-5
ii libc6 2.19-13
ii libdns-export100 1:9.9.5.dfsg-7
ii libirs-export91 1:9.9.5.dfsg-7
ii libisc-export95 1:9.9.5.dfsg-7
isc-dhcp-client recommends no packages.
Versions of packages isc-dhcp-client suggests:
ii avahi-autoipd 0.6.31-4+b2
ii resolvconf 1.76
-- Configuration Files:
/etc/dhcp/dhclient.conf changed:
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
send host-name = gethostname();
prepend domain-name-servers 127.0.0.1, 8.8.8.8, 8.8.4.4;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
dhcp6.name-servers, dhcp6.domain-search,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
-- no debconf information
More information about the pkg-dhcp-devel
mailing list