-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Hi,
Applying the systemd.resolved formula on Debian / RedHat nodes results in the /etc/resolv.conf symlink pointing to /run/systemd/resolve/resolv.conf, which forwards DNS queries to external DNS servers instead of the local systemd-resolved service.
Two observations:
-
While symlinking
/etc/resolv.confto/run/systemd/resolve/resolv.confis perfectly fine, it would result insystemd-resolvedbeing bypassed by most DNS consumers. Since thesystemd-resolvedstate explicitly configures and enables systemd-resolved, I suppose most people would also expect the state to also promote systemd-resolved as the main DNS resolver on the configured system. -
In
osfamilymap.yaml, different defaults apply on Arch systems. On such systems, the/etc/resolv.confsymlink will be configured to target/run/systemd/resolve/stub-resolv.conf, which will result in systemd-resolved actually becoming the main DNS resolver.
Shouldn't we:
-
Use the same defaults (whatever they might be) for all OS families ?
-
Change the target of
/etc/resolv.confto/run/systemd/resolve/stub-resolv.confto enable the use of systemd-resolved by default ?