From eee5f2e55ee59d67b2520abe4152d84255a9a85c Mon Sep 17 00:00:00 2001 From: Garionion Date: Fri, 15 Jul 2022 10:38:30 +0200 Subject: [PATCH] pre-router: remove unbound, use quad9 --- hosts/pre-router/dns.nix | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/hosts/pre-router/dns.nix b/hosts/pre-router/dns.nix index bdad68d..b86fdac 100644 --- a/hosts/pre-router/dns.nix +++ b/hosts/pre-router/dns.nix @@ -6,35 +6,15 @@ enable = true; config = '' .:53 { + errors log cache - unbound + 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 + health_check 5s + } } ''; - package = lib.fix (self: (pkgs.buildGoModule { - inherit (pkgs.coredns) pname version src postPatch; - - patches = pkgs.coredns.patches or [ ] ++ [ - ./coredns-unbound.patch - ]; - - buildInputs = [ pkgs.unbound ]; - - vendorSha256 = "sha256-48S1oT+5uT6d+AM8u93AOTbJkW3CLtaowGv+th3cfyM="; - - preBuild = '' - go generate - - postInstall () { - cp go.mod $out - } - ''; - - }).overrideAttrs(old: { - preBuild = '' - cp ${self.passthru.go-modules}/go.mod . - go generate - ''; - })); }; } \ No newline at end of file