From d3e1e3e67fea651993b3c6981391da6186806d7f Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sun, 21 May 2023 16:18:53 +0100 Subject: [PATCH] dns: added csn.ul.ie --- applications/dns.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) 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