dnscache: up caching

This commit is contained in:
Sandro - 2022-09-18 01:15:26 +02:00
parent c9585041f6
commit 0449688a76
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 7 additions and 0 deletions

View File

@ -12,9 +12,16 @@ lib.mkIf config.site.hosts.${hostName}.services.dnscache.enable {
num-threads = 4;
verbosity = 1;
prefetch = true;
prefetch-keys = true;
serve-expired = true;
cache-min-ttl = 60;
cache-max-ttl = 3600;
infra-cache-slabs = "8";
key-cache-slabs = "8";
msg-cache-slabs = "8";
rrset-cache-slabs = "8";
msg-cache-size = "256m"; # half again 128m?
rrset-cache-size = "512m"; # half again 256m?
interface = [ "0.0.0.0" "'::0'" ];
# TODO: generate