From 0449688a76b4590e3eee6c977971b0da549033b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 18 Sep 2022 01:15:26 +0200 Subject: [PATCH] dnscache: up caching --- nix/nixos-module/container/dnscache.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nix/nixos-module/container/dnscache.nix b/nix/nixos-module/container/dnscache.nix index eca26da..033bf87 100644 --- a/nix/nixos-module/container/dnscache.nix +++ b/nix/nixos-module/container/dnscache.nix @@ -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