[pkg-dhcp-devel] Bug#773749: isc-dhcp-client: no longer updates /etc/resolv.conf

Vincent Lefevre vincent at vinc17.net
Tue Dec 23 01:20:54 UTC 2014

On 2014-12-22 22:38:36 +0100, Vincent Lefevre wrote:
> 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,,;
> ------------------------------------------------------------------------

This is actually a template file used by wicd to generate the real
dhclient config file. In the past, the generated file was in some
special place and dhclient was called with the -cf option, but this
is no longer the case, and /etc/dhcp/dhclient.conf is now regenerated
and wicd no longer uses the -cf option.

This /etc/dhcp/dhclient.conf file contains (without the comments):

send host-name = gethostname();

prepend domain-name-servers,,;

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;

As you can see, though there's the "prepend domain-name-servers ..."
line, the /etc/resolv.conf file is not updated.

Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

More information about the pkg-dhcp-devel mailing list