DNSIMPLE: enable Null MX records (#2960)

This commit is contained in:
Phil Pennock 2024-05-16 17:08:57 -04:00 committed by GitHub
parent c7975f9b91
commit df1354bef6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -11,8 +11,6 @@ import (
func AuditRecords(records []*models.RecordConfig) []error { func AuditRecords(records []*models.RecordConfig) []error {
a := rejectif.Auditor{} a := rejectif.Auditor{}
a.Add("MX", rejectif.MxNull) // Last verified 2023-03
a.Add("TXT", rejectif.TxtLongerThan(1000)) // Last verified 2023-12 a.Add("TXT", rejectif.TxtLongerThan(1000)) // Last verified 2023-12
a.Add("TXT", rejectif.TxtHasTrailingSpace) // Last verified 2023-03 a.Add("TXT", rejectif.TxtHasTrailingSpace) // Last verified 2023-03

View file

@ -95,7 +95,9 @@ func (c *dnsimpleProvider) GetZoneRecords(domain string, meta map[string]string)
r.Name = "@" r.Name = "@"
} }
if r.Type == "CNAME" || r.Type == "MX" || r.Type == "ALIAS" || r.Type == "NS" { if r.Type == "CNAME" || r.Type == "ALIAS" || r.Type == "NS" {
r.Content += "."
} else if r.Type == "MX" && r.Content != "." {
r.Content += "." r.Content += "."
} }