GNU bug report logs - #72072
gnu: isc-dhcp: Patch dhclient to support resolvconf.

Previous Next

Package: guix-patches;

Reported by: "B. Wilson" <elaexuotee <at> wilsonb.com>

Date: Fri, 12 Jul 2024 09:51:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "B. Wilson" <elaexuotee <at> wilsonb.com>
To: 72072 <at> debbugs.gnu.org
Subject: [bug#72072] gnu: isc-dhcp: Patch dhclient to support resolvconf.
Date: Fri, 12 Jul 2024 18:50:39 +0900
[Message part 1 (text/plain, inline)]
Hey Guix,

This patch updates libexec/dhclient-script to use resolvconf instead of
directly editing /etc/resolv.conf, similar to dhcpcd and friends.

This allows dhclient to play nicely with other clients which may want to
contend for /etc/resolv.conf control. My particular use case is running a local
dnsmasq instance, configured to allow using the various DNS servers of multiple
simultaneous VPN connections.

Ideally, this would be an upstream patch, but ISC announced end of maintenance
in 2022, so until we migrate dhcp-client-service-type to something else, I
believe it makes sense to have the patch here.

Using a bare-bones.scm VM, I have confirmed that this transparently works in
the default case where no /etc/resolvconf.conf is setup. In a separate patch, I
will be sharing my resolvconf-service-type definition that enables the dnsmasq
integration I mention.

Note, however, that switching to this via a system reconfigure has the
possibility of nuking DNS until the next time dhclient tries to update them.
Simply restarting the networking service is enough to force this, though.

Thoughts?

[0001-gnu-isc-dhcp-Patch-dhclient-to-support-resolvconf.patch (text/x-diff, attachment)]

This bug report was last modified 181 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.