1
0
vcp-bula-nixfiles/hosts/pre-router/dns.nix
2022-07-15 10:38:30 +02:00

20 lines
430 B
Nix

{ config, pkgs, lib, ...}:
{
networking.firewall.interfaces.ens19.allowedUDPPorts = [ 53 ];
services.coredns = {
enable = true;
config = ''
.:53 {
errors
log
cache
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
}
}
'';
};
}