Update nsswitch.conf to use systemd-resolved#10
Merged
pothos merged 3 commits intoflatcar:flatcar-masterfrom Jan 4, 2021
Merged
Update nsswitch.conf to use systemd-resolved#10pothos merged 3 commits intoflatcar:flatcar-masterfrom
pothos merged 3 commits intoflatcar:flatcar-masterfrom
Conversation
This was referenced Dec 4, 2020
pothos
reviewed
Dec 4, 2020
Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
pothos
added a commit
that referenced
this pull request
Dec 7, 2020
Update nsswitch.conf to use systemd-resolved
pothos
reviewed
Dec 18, 2020
Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
pothos
approved these changes
Jan 4, 2021
pothos
added a commit
to flatcar-archive/coreos-overlay
that referenced
this pull request
Jan 4, 2021
This pulls in flatcar/baselayout#10 flatcar/baselayout#14 flatcar/baselayout#11 to configure systemd-resolved.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update nsswitch.conf to use systemd-resolved
Partly related to flatcar/Flatcar#285 as suggested by @pothos
This allows nsswitch to use systemd-resolved
How to use
Update the nsswitch.conf ;)
Testing done
This test shows that systemd's split-horizon (routed-domains) is working and nsswitch is also using systemd-resolved instead of /etc/resolv.conf (the DNS referenced is NOT recursive)
HOWEVER
it's important to note that anything using /etc/resolv.conf will fail to use systemd-resolved until the stublistener is re-enabled and the symlink it set to
/run/systemd/resolve/stub-resolv.confas outlined in the linked issue. (This limitation does not impose any regression as it didnt work before at all, so this is now a half-working solution - full working is achieved by removing/lib/systemd/resolved.conf.d/50-no-dns-listener.confand replacing /etc/resolv.conf)