diff --git a/applications/dns.nix b/applications/dns.nix index 683f3b7..1fff9f2 100644 --- a/applications/dns.nix +++ b/applications/dns.nix @@ -270,6 +270,26 @@ in { # no leading whitespace for first line }; + + "csn.ul.ie" = { + extraConfig = '' + allow-update { key rfc2136key.skynet.ie.; }; + + dnssec-policy default; + inline-signing yes; + + // for bumping the config + // ${current_date} + ''; + # really wish teh nixos config didnt use master/slave + master = true; + slaves = [ ]; + # need to write this to a file + # using the date in it so it will trigger a restart + file = "/etc/dns_custom/dns_zone_csn"; + # no leading whitespace for first line + + }; }; }; @@ -291,6 +311,16 @@ in { text = get_config_file "skynet.ie"; }; + + "dns_custom/dns_zone_csn" = { + user = "named"; + group = "named"; + + # The UNIX file mode bits + mode = "0644"; + + text = get_config_file "csn.ul.ie"; + }; }; }; } \ No newline at end of file