Add bind9 to aratta

This commit is contained in:
HackerNCoder 2024-09-19 16:32:54 +02:00
parent 3ca6debf4d
commit 21a1a17941
2 changed files with 31 additions and 0 deletions

View file

@ -13,6 +13,7 @@
../../modules/server.nix ../../modules/server.nix
../../modules/users.nix ../../modules/users.nix
../../modules/bind.nix
../../users/root.nix ../../users/root.nix
../../users/hackerncoder.nix ../../users/hackerncoder.nix

30
modules/bind.nix Normal file
View file

@ -0,0 +1,30 @@
{ config, pkgs, ... }:
{
services.bind = {
enable = true;
zones = {
"encryptionin.space" = {
name = "encryptionin.space";
master = false;
file = "db.encryptionin.space";
masters = [ "92.51.163.43" ];
# extraConfig = ''
# dnssec-policy default;
# inline-signing yes;
# '';
};
"queerscriptors.org" = {
name = "queerscriptors.org";
master = false;
file = "db.queerscriptors.org";
masters = [ "92.51.163.43" ];
# extraConfig = ''
# dnssec-policy default;
# inline-signing yes;
# '';
};
};
};
networking.firewall.allowedUDPPorts = [ 53 ];
}