mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-23 23:23:05 +08:00
CSCGLOBAL: Enable CAA records (#1536)
* Enable CAA * Another API oddity * Disable debug output
This commit is contained in:
parent
752e25471d
commit
7826c23cfa
2 changed files with 4 additions and 5 deletions
|
@ -25,8 +25,8 @@ type providerClient struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var features = providers.DocumentationNotes{
|
var features = providers.DocumentationNotes{
|
||||||
providers.CanGetZones: providers.Can(),
|
providers.CanGetZones: providers.Can(),
|
||||||
//providers.CanUseCAA: providers.Can(),
|
providers.CanUseCAA: providers.Can(),
|
||||||
providers.CanUseSRV: providers.Can(),
|
providers.CanUseSRV: providers.Can(),
|
||||||
providers.DocOfficiallySupported: providers.Can(),
|
providers.DocOfficiallySupported: providers.Can(),
|
||||||
}
|
}
|
||||||
|
|
|
@ -292,10 +292,9 @@ func makeEdit(domainname string, m diff.Correlation) zoneResourceRecordEdit {
|
||||||
case "CAA":
|
case "CAA":
|
||||||
var tagValue = old.CaaTag
|
var tagValue = old.CaaTag
|
||||||
zer.CurrentTag = &tagValue
|
zer.CurrentTag = &tagValue
|
||||||
if old.CaaTag != rec.CaaTag {
|
if old.CaaTag != rec.CaaTag || old.CaaFlag != rec.CaaFlag || old.TTL != rec.TTL {
|
||||||
|
// If anything changed, we need to update both tag and flag.
|
||||||
zer.NewTag = &(rec.CaaTag)
|
zer.NewTag = &(rec.CaaTag)
|
||||||
}
|
|
||||||
if old.CaaFlag != rec.CaaFlag {
|
|
||||||
zer.NewFlag = &(rec.CaaFlag)
|
zer.NewFlag = &(rec.CaaFlag)
|
||||||
}
|
}
|
||||||
case "MX":
|
case "MX":
|
||||||
|
|
Loading…
Reference in a new issue