No, that doesn't work...

This commit is contained in:
niten 2023-11-02 09:15:38 -07:00
parent 082dc242ef
commit 44036f8dd7
1 changed files with 3 additions and 3 deletions

View File

@ -98,9 +98,9 @@ let
optionalString (dmarcEmail != null) '' optionalString (dmarcEmail != null) ''
_dmarc IN TXT "v=DMARC1;p=quarantine;sp=quarantine;rua=mailto:${dmarcEmail};"''; _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: flatmapAttrsToList = f: attrs:
foldr (a: b: a ++ b) [ ] (mapAttrsToList f attrs); foldr (a: b: a ++ b) [ ] (mapAttrsToList f attrs);
@ -108,7 +108,7 @@ let
domainRecords = domain: zone: domainRecords = domain: zone:
let let
defaultHostRecords = optionals (zone.default-host != null) defaultHostRecords = optionals (zone.default-host != null)
(makeHostRecords domain zone.default-host); (makeHostRecords "@" zone.default-host);
kerberosRecord = optionalString (zone.gssapi-realm != null) kerberosRecord = optionalString (zone.gssapi-realm != null)
''_kerberos IN TXT "${zone.gssapi-realm}"''; ''_kerberos IN TXT "${zone.gssapi-realm}"'';