NetworkManager/src/dns
Thomas Haller c1f9a0fff1
dns: add new "rc-manager=auto" mode
Add a new `main.rc-manager=auto` setting, that favours to use
systemd-resolved (and not touch "/etc/resolv.conf" but configure
it via D-Bus), or falls back to `resolvconf`/`netconfig` binaries
if they are installed and enabled at compile time.
As final fallback use "symlink", like before.

Note that on Fedora there is no "openresolv" package ([1]). Instead, "systemd"
package provides "/usr/sbin/resolvconf" as a wrapper for systemd-resolved's
"resolvectl". On such a system the fallback to resolvconf is always
wrong, because NetworkManager should either talk to systemd-resolved
directly or not but never call "/usr/sbin/resolvconf". So, the special handling
for resolvconf and netconfig is only done if NetworkManager was build with these
applications explicitly enabled.

Note that SUSE builds NetworkManager with

    --with-netconfig=yes
    --with-config-dns-rc-manager-default=netconfig

and the new option won't be used there either. But of course, netconfig
already does all the right things on SUSE.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=668153

Suggested-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-08-24 21:13:21 +02:00
..
nm-dns-dnsmasq.c all: fix minor typos 2020-07-07 11:33:46 +02:00
nm-dns-dnsmasq.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-dns-manager.c dns: add new "rc-manager=auto" mode 2020-08-24 21:13:21 +02:00
nm-dns-manager.h dns: add new "rc-manager=auto" mode 2020-08-24 21:13:21 +02:00
nm-dns-plugin.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-dns-plugin.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-dns-systemd-resolved.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-dns-systemd-resolved.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-dns-unbound.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-dns-unbound.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00