mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
* Fix #702: Spurious null MX changes on CloudFlare * Test roundtripping null MX on Cloudflare * Use an if instead of TrimSuffix * Add other providers that support RFC 7505 * Suppress test for non-compliant providers
This commit is contained in:
@@ -541,7 +541,9 @@ type cfRecord struct {
|
||||
func (c *cfRecord) nativeToRecord(domain string) *models.RecordConfig {
|
||||
// normalize cname,mx,ns records with dots to be consistent with our config format.
|
||||
if c.Type == "CNAME" || c.Type == "MX" || c.Type == "NS" || c.Type == "SRV" {
|
||||
c.Content = dnsutil.AddOrigin(c.Content+".", domain)
|
||||
if c.Content != "." {
|
||||
c.Content = c.Content + "."
|
||||
}
|
||||
}
|
||||
|
||||
rc := &models.RecordConfig{
|
||||
|
Reference in New Issue
Block a user