1
0
Fork 0

dns: forward to quad9, add bul22.de zonefiles

This commit is contained in:
Garionion 2022-07-15 10:34:35 +02:00
parent a8b30591ee
commit bfa4b3717f
1 changed files with 14 additions and 26 deletions

View File

@ -10,33 +10,21 @@
log
cache
prometheus 10.42.10.8:9253
unbound
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
}
}
bula22.de {
errors
log
prometheus 10.42.10.8:9353
file /etc/zones/db.bula22.de
file /etc/zones/db.42.10.in-addr.arpa.
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.
}
'';
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
'';
}));
};
}