wg-quick invoking resolvectl instead of resolvconf on systems where that is appropriate?
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Tue Sep 10 20:50:48 CEST 2019
Hi Wireguard folks--
over in https://bugs.debian.org/939904, Michael Biebl (in cc) pointed
out that on GNU/Linux systems supervised by systemd, if systemd-resolved
is running, it might make more sense for wg-quick to invoke resolvectl
directly with the DNS parameter instead of depending on resolvectl's
resolvconf-like symlink shim.
Jason, is that something that you'd be ok with, or is wg-quick wedded to
resolvconf, even if resolvectl is available and there is no resolvconf?
(and if you're ok with it, but if both exist, do you have a preference
for which one should be used?)
Is anyone interested in hacking on src/tools/wg-quick/linux.bash to
enable this? I think the command should be pretty simple -- the main
things to get right are detection of subsystem availability and conflict
resolution.
I guess my preference would be something like:
* if resolvectl exists, try to use it. if it succeeds, done. (it
might fail if systemd-resolved is not running, for example)
* otherwise, try using resolvconf.
but of course this is Jason's call to make.
--dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/wireguard/attachments/20190910/b6da8a76/attachment.asc>
More information about the WireGuard
mailing list