2022-01-14 15:47:24 +00:00
|
|
|
{ ... }: {
|
|
|
|
containers."named" = {
|
2022-01-14 15:49:21 +00:00
|
|
|
autoStart = true;
|
2022-01-14 15:47:24 +00:00
|
|
|
config = {
|
|
|
|
services.bind = {
|
|
|
|
enable = true;
|
|
|
|
forwarders = [
|
|
|
|
"2a01:4f8:c17:14df::1"
|
|
|
|
];
|
|
|
|
cacheNetworks = [ "0.0.0.0/0" "::/0" ];
|
|
|
|
};
|
|
|
|
system.stateVersion = "21.11";
|
|
|
|
};
|
|
|
|
};
|
2022-01-14 15:52:07 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [ 53 ];
|
|
|
|
networking.firewall.allowedUDPPorts = [ 53 ];
|
2022-01-14 15:47:24 +00:00
|
|
|
}
|