From 29f8c7daf416cd4e2eccb8a9a0b1ac022a05f6cb Mon Sep 17 00:00:00 2001 From: Garionion Date: Sun, 24 Jul 2022 15:27:51 +0200 Subject: [PATCH] dns: tune cache --- hosts/dns/coredns-unbound.patch | 13 ------------- hosts/dns/dns.nix | 9 +++++++-- 2 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 hosts/dns/coredns-unbound.patch diff --git a/hosts/dns/coredns-unbound.patch b/hosts/dns/coredns-unbound.patch deleted file mode 100644 index c73bb09..0000000 --- a/hosts/dns/coredns-unbound.patch +++ /dev/null @@ -1,13 +0,0 @@ -Index: plugin.cfg -IDEA additional info: -Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP -<+>UTF-8 -=================================================================== -diff --git a/plugin.cfg b/plugin.cfg ---- a/plugin.cfg (revision ddee42c974d89d9beb4ebf7b82019624fbf0c456) -+++ b/plugin.cfg (revision 04ba8accb25837d30a16445a1365489fe9509333) -@@ -69,3 +69,4 @@ - whoami:whoami - on:github.com/coredns/caddy/onevent - sign:sign -+unbound:github.com/coredns/unbound diff --git a/hosts/dns/dns.nix b/hosts/dns/dns.nix index f5df3b2..d94b62d 100644 --- a/hosts/dns/dns.nix +++ b/hosts/dns/dns.nix @@ -9,7 +9,12 @@ .:53 { errors log - cache + cache { + success 1000000 + denial 50000 + prefetch 6 10m 10% + serve_stale + } prometheus 10.42.10.8:9253 forward . tls://2620:fe::fe tls://9.9.9.9 tls://2620:fe::9 tls://149.112.112.112 { tls_servername dns.quad9.net @@ -26,7 +31,7 @@ #file /etc/zones/db.2.4.0.0.0.1.0.0.0.0.d.f.ip6.arpa. #file /etc/zones/db.1.2.2.8.c.0.c.1.8.f.4.0.1.0.a.2.ip6.arpa. } - + 42.10.in-addr.arpa { file /etc/zones/db.42.10.in-addr.arpa. }