From 65ba1e165d9b4e046b3c23bced2b50df7efa68ab Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 8 Nov 2023 15:32:46 -0800 Subject: [PATCH] Oops, nameservers is in zone --- authoritative-dns.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/authoritative-dns.nix b/authoritative-dns.nix index 08d6d6f..e542c16 100644 --- a/authoritative-dns.nix +++ b/authoritative-dns.nix @@ -92,12 +92,12 @@ in { stateDirectory = cfg.state-directory; zones = let forwardZones = mapAttrs' (domain: - { ksk, zone, nameservers, ... }: + { ksk, zone, ... }: nameValuePair "${domain}." { dnssec = ksk.key-file != null; ksk.keyFile = ksk.key-file; - provideXFR = map (ns: "${ns}/32 NOKEY") nameservers; - notify = map (ns: "${ns} NOKEY") nameservers; + provideXFR = map (ns: "${ns}/32 NOKEY") zone.nameservers; + notify = map (ns: "${ns} NOKEY") zone.nameservers; data = zoneToZonefile { inherit domain; inherit (cfg) timestamp; @@ -105,7 +105,7 @@ in { }; }) cfg.domains; reverseZones = concatMapAttrs (domain: - { ksk, zone, nameservers, reverse-zones, ... }: + { ksk, zone, reverse-zones, ... }: listToAttrs (map (network: reverseZonefile { inherit domain network;