-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace nscd caching with systemd-resolved #51911
Comments
I basically agree - just want to add that there of course other nss modules providing hosts, passwd etc too, so a dive into the priorities there shouldn't hurt :-) |
That is already supported. You can add nss modules as you please by modifying the |
Sure, what I meant was the /order/ of the nss modules being queried. |
Would using systemd-resolved for all the host caching also imply that we use it for all DNS queries that leave the host? If so, I do not think it is a viable option. It should still be possible for someone to use a local (recursive) resolver that isn't systemd-resolved |
These days, The PRs mentioned in #86350 made the configuration and order of NSS modules much cleaner. In case people enable IMHO, by now, we could just disable the positive
@arianvp could you file a PR disabling the remaining caching in nscd? Then, we could also remove the invalidation in |
Can this be closed, now that #89274 was merged? |
I think so yes. @flokli ? |
👍 |
Feature description
We now use
nscd
caching only for host lookups since #50316 was merged. However, we would want to get rid of any mentions ofnscd
caching as manualcach invalidation is error prone. We can use
systemd-resolved
, which is already loaded by default as annss_module
to do Host lookup caching for us instead, automatically invalidating based on/etc/resolv.conf
and the TTLs given by the DNS records.Once this is done, we can get rid of a lot of places in NixOS where we manually invalidate
nscd
caches, asnscd
is then not used for caching anymore, but purely for delegatingnss
requests to the appropriatenss_module
The text was updated successfully, but these errors were encountered: