diff options
Diffstat (limited to 'config/dns.nix')
-rw-r--r-- | config/dns.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/config/dns.nix b/config/dns.nix index dd0cf3d..535992d 100644 --- a/config/dns.nix +++ b/config/dns.nix @@ -6,6 +6,11 @@ let zone-files = pkgs.callPackage ../pkgs/zone-files/default.nix { }; in { + networking.firewall = { + allowedTCPPorts = [ 53 ]; + allowedUDPPorts = [ 53 ]; + }; + services.bind = { enable = true; extraConfig = '' @@ -17,6 +22,18 @@ in key-directory "/opt/secret/bind/${zone}"; update-policy local; allow-query { any; }; + allow-transfer { + ::1; + 193.35.52.61; // trygve transfer + 2a00:1b60:1011::6def:e868; // ns1 + 2001:67c:29f4::61; // ns2 + 2604:2000:12c1:c0c6::1000; // sabaki + }; + also-notify { + 193.35.52.61; // trygve transfer + 2a00:1b60:1011::6def:e868; // ns1 + 2001:67c:29f4::61; // ns2 + }; }; '') masterZones} ''; |