2022-07-07 11:15:52 +02:00
|
|
|
{ config, pkgs, lib, ...}:
|
|
|
|
|
|
|
|
{
|
|
|
|
networking.firewall.interfaces.ens19.allowedUDPPorts = [ 53 ];
|
|
|
|
services.coredns = {
|
|
|
|
enable = true;
|
|
|
|
config = ''
|
|
|
|
.:53 {
|
2022-07-15 10:38:30 +02:00
|
|
|
errors
|
2022-07-07 11:15:52 +02:00
|
|
|
log
|
|
|
|
cache
|
2022-07-15 10:38:30 +02:00
|
|
|
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
|
|
|
|
}
|
2022-07-07 11:15:52 +02:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|