nix-server/modules/bind.nix
2024-09-20 17:10:06 +02:00

29 lines
601 B
Nix

{ config, pkgs, ... }:
{
services.bind = {
enable = true;
cacheNetworks = [
"127.0.0.0/24"
"::1/128"
"localhost"
"localnets"
];
zones = {
"encryptionin.space" = {
name = "encryptionin.space";
master = false;
file = "db.encryptionin.space";
masters = [ "92.51.163.43" ];
};
"queerscriptors.org" = {
name = "queerscriptors.org";
master = false;
file = "db.queerscriptors.org";
masters = [ "92.51.163.43" ];
};
};
};
networking.firewall.allowedUDPPorts = [ 53 ];
}