[pkg-dhcp-devel] Bug#876946: isc-dhcp-client: dhclient does not use enter and exit hooks when using -cf option
Pedro Ribeiro
pedrib at gmail.com
Wed Sep 27 05:00:42 UTC 2017
Package: isc-dhcp-client
Version: 4.3.5-3
Severity: normal
Tags: lfs
dhclient is supposed to use the scripts at /etc/dhcp/dhclient-enter-hooks.d/
when it starts.
This works fine with dhclient -v <interface>. However, when using dhclient -cf
<conf_file> <interface>, the hook scripts are not used.
This can be seen below, where the use of the the -cf option doesn't use
resolvconf to update /etc/resolv.conf, but when I omit the -cf flag everything
works fine.
I don't see any option in the default config that enables this, so I'm assuming
it's a bug.
~ > sudo dhclient -v -cf /var/lib/wicd/dhclient.conf wlan0
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlan0/60:67:20:c7:1b:d0
Sending on LPF/wlan0/60:67:20:c7:1b:d0
Sending on Socket/fallback
DHCPREQUEST of 192.168.1.106 on wlan0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.106 from 192.168.1.1
RTNETLINK answers: File exists
bound to 192.168.1.106 -- renewal in 110002 seconds.
~ > cat /etc/resolv.conf
nameserver 192.168.1.1
~ > sudo dhclient -v wlan0
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlan0/60:67:20:c7:1b:d0
Sending on LPF/wlan0/60:67:20:c7:1b:d0
Sending on Socket/fallback
DHCPREQUEST of 192.168.1.106 on wlan0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.106 from 192.168.1.1
RTNETLINK answers: File exists
bound to 192.168.1.106 -- renewal in 99741 seconds.
~ > cat /etc/resolv.conf
# 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 192.168.1.1
nameserver 127.0.0.1
-- System Information:
Debian Release: 9.1
APT prefers stable
APT policy: (750, 'stable'), (650, 'testing'), (600, 'unstable'), (550, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.50-unofficial+grsec+ (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
Versions of packages isc-dhcp-client depends on:
ii debianutils 4.8.1.1
ii iproute2 4.9.0-1
ii libc6 2.24-11+deb9u1
ii libdns-export162 1:9.10.3.dfsg.P4-12.3+deb9u2
ii libisc-export160 1:9.10.3.dfsg.P4-12.3+deb9u2
Versions of packages isc-dhcp-client recommends:
ii isc-dhcp-common 4.3.5-3
Versions of packages isc-dhcp-client suggests:
pn avahi-autoipd <none>
pn isc-dhcp-client-ddns <none>
ii resolvconf 1.79
-- no debconf information
More information about the pkg-dhcp-devel
mailing list