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