NetworkManager/man
Thomas Haller 0dc673f0a5 dns: write original DNS servers to /var/run/NetworkManager/no-stub-resolv.conf
When a DNS plugin is enabled (like "main.dns=dnsmasq" or "main.dns=systemd-resolved"),
the name servers announced to the rc-manager are coerced to be 127.0.0.1
or 127.0.0.53.

Depending on the "main.rc-manager" setting, also "/etc/resolv.conf"
contains only this coerced name server to the local caching service.
The same is true for "/var/run/NetworkManager/resolv.conf" file, which
contains what we would write to "/etc/resolv.conf" (depending on
the "main.rc-manager" configuration).

Write a new file "/var/run/NetworkManager/no-stub-resolv.conf", which contains
the original name servers, uncoerced. Like "/var/run/NetworkManager/resolv.conf",
this file is always written.

The effect is, when one enables "main.dns=systemd-resolved", then there
is still a file "no-stub-resolv.conf" with the same content as with
"main.dns=default".

The no-stub-resolv.conf may be a possible solution, when a user wants
NetworkManager to update systemd-resolved, but still have a regular
/etc/resolv.conf [1]. For that, the user could configure

    [main]
    dns=systemd-resolved
    rc-manager=unmanaged

and symlink "/etc/resolv.conf" to "/var/run/NetworkManager/no-stub-resolv.conf".
This is not necessarily the only solution for the problem and does not preclude
options for updating systemd-resolved in combination with other DNS plugins.

[1] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/20
2018-09-21 11:12:47 +02:00
..
common.ent.in build: use sed instead of AC_SUBST() to generate man/common.ent 2017-02-15 18:36:24 +01:00
meson.build build: meson: gtk-doc needs common.ent 2018-09-19 16:03:32 +02:00
NetworkManager.conf.xml dns: write original DNS servers to /var/run/NetworkManager/no-stub-resolv.conf 2018-09-21 11:12:47 +02:00
NetworkManager.xml man/NetworkManager: document --configure-and-quit option 2018-09-18 17:40:47 +02:00
nm-initrd-generator.xml initrd: add configuration generator 2018-09-18 17:40:47 +02:00
nm-online.xml man: turn the manual page cross-references into links 2016-06-21 18:40:13 +02:00
nm-openvswitch.xml man/openvswitch: advise to use "master" instead of "conn.master" 2018-08-06 18:59:01 +02:00
nm-settings-ifcfg-rh.xsl man: fix evaluation of unsupported ifcfg-rh settings 2017-09-05 10:33:42 +02:00
nm-settings-keyfile.xsl man: turn the manual page cross-references into links 2016-06-21 18:40:13 +02:00
nm-settings.xsl man: clearify plain text secrets in keyfile 2017-09-28 17:56:49 +02:00
nmcli-examples.xml nmcli: add -g[et-values] option as a '-m tab -t -f <arg>' shortcut 2017-03-28 10:55:00 +02:00
nmcli.xml client: support 6lowpan setting 2018-06-26 16:21:55 +02:00
nmtui.1.in man: update version number and dates in manual pages 2016-03-09 10:11:27 +01:00
nmtui.xml man: turn the manual page cross-references into links 2016-06-21 18:40:13 +02:00