diff options
author | Florian Klink <flokli@flokli.de> | 2020-06-01 01:12:43 +0200 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2020-06-01 01:12:43 +0200 |
commit | 09244cbd98d119fdc9b8ead9dfe66b7f1b833ba4 (patch) | |
tree | 8e6c6068cb175d6896ce9249136fb1e568e3647b /nixos | |
parent | 5e898d1cb86ef524e1000de7732ecccc4a616b2d (diff) | |
download | nixlib-09244cbd98d119fdc9b8ead9dfe66b7f1b833ba4.tar nixlib-09244cbd98d119fdc9b8ead9dfe66b7f1b833ba4.tar.gz nixlib-09244cbd98d119fdc9b8ead9dfe66b7f1b833ba4.tar.bz2 nixlib-09244cbd98d119fdc9b8ead9dfe66b7f1b833ba4.tar.lz nixlib-09244cbd98d119fdc9b8ead9dfe66b7f1b833ba4.tar.xz nixlib-09244cbd98d119fdc9b8ead9dfe66b7f1b833ba4.tar.zst nixlib-09244cbd98d119fdc9b8ead9dfe66b7f1b833ba4.zip |
nixos/nscd: set positive hosts caching ttl to 0
This effectively disables nscd's built-in hosts cache, which turns out to be erratic in some cases. We only use nscd these days as a more ABI-neutral NSS dispatcher mechanism. Local caching should still be possible with local resolvers in /etc/resolv.conf (via the `dns` NSS module), or without local resolvers via systemd-networkd (via the `resolve` nss module) We don't set enable-cache to no due to https://github.com/NixOS/nixpkgs/pull/50316#discussion_r241035226.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/system/nscd.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/system/nscd.conf b/nixos/modules/services/system/nscd.conf index 2b7523a7346d..722b883ba420 100644 --- a/nixos/modules/services/system/nscd.conf +++ b/nixos/modules/services/system/nscd.conf @@ -24,7 +24,7 @@ negative-time-to-live netgroup 0 shared netgroup yes enable-cache hosts yes -positive-time-to-live hosts 600 +positive-time-to-live hosts 0 negative-time-to-live hosts 0 shared hosts yes |