From 44036f8dd71387875d2212095c4ac9c422d9a2f9 Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 2 Nov 2023 09:15:38 -0700 Subject: [PATCH] No, that doesn't work... --- zone-to-zonefile.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zone-to-zonefile.nix b/zone-to-zonefile.nix index e0125d7..bc126bb 100644 --- a/zone-to-zonefile.nix +++ b/zone-to-zonefile.nix @@ -98,9 +98,9 @@ let optionalString (dmarcEmail != null) '' _dmarc IN TXT "v=DMARC1;p=quarantine;sp=quarantine;rua=mailto:${dmarcEmail};"''; - mxRecords = map (mx: "${domain} IN MX 10 ${mx}."); + mxRecords = map (mx: "@ IN MX 10 ${mx}."); - nsRecords = map (ns-host: "${domain} IN NS ${ns-host}"); + nsRecords = map (ns-host: "@ IN NS ${ns-host}"); flatmapAttrsToList = f: attrs: foldr (a: b: a ++ b) [ ] (mapAttrsToList f attrs); @@ -108,7 +108,7 @@ let domainRecords = domain: zone: let defaultHostRecords = optionals (zone.default-host != null) - (makeHostRecords domain zone.default-host); + (makeHostRecords "@" zone.default-host); kerberosRecord = optionalString (zone.gssapi-realm != null) ''_kerberos IN TXT "${zone.gssapi-realm}"'';