diff --git a/zone-to-zonefile.nix b/zone-to-zonefile.nix index e5b593a..862d3a1 100644 --- a/zone-to-zonefile.nix +++ b/zone-to-zonefile.nix @@ -103,7 +103,7 @@ let optionalString (dmarcEmail != null) '' _dmarc IN TXT "v=DMARC1;p=quarantine;sp=quarantine;rua=mailto:${dmarcEmail};"''; - mxRecords = map (mx: "@ IN MX 10 ${mx}."); + mxRecords = map (mx: "@ IN MX 10 ${hostToFqdn mx}"); nsRecords = map (ns-host: "@ IN NS ${ns-host}");