mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-11-10 09:12:47 +08:00
DNSIMPLE: enable Null MX records (#2960)
This commit is contained in:
parent
c7975f9b91
commit
df1354bef6
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
|
@ -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 += "."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue