diff --git a/hosts/aratta/default.nix b/hosts/aratta/default.nix index f821d8c..74db96e 100644 --- a/hosts/aratta/default.nix +++ b/hosts/aratta/default.nix @@ -13,6 +13,7 @@ ../../modules/server.nix ../../modules/users.nix + ../../modules/bind.nix ../../users/root.nix ../../users/hackerncoder.nix diff --git a/modules/bind.nix b/modules/bind.nix new file mode 100644 index 0000000..47dd446 --- /dev/null +++ b/modules/bind.nix @@ -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 ]; +}