diff --git a/documentation/providers.md b/documentation/providers.md index 5a1eafece..1e42c150b 100644 --- a/documentation/providers.md +++ b/documentation/providers.md @@ -15,7 +15,7 @@ If a feature is definitively not supported for whatever reason, we would also li | Provider name | Official Support | DNS Provider | Registrar | [`ALIAS`](functions/domain/ALIAS.md) | [`CAA`](functions/domain/CAA.md) | [`AUTODNSSEC`](functions/domain/AUTODNSSEC_ON.md) | [`LOC`](functions/domain/LOC.md) | [`NAPTR`](functions/domain/NAPTR.md) | [`PTR`](functions/domain/PTR.md) | [`SOA`](functions/domain/SOA.md) | [`SRV`](functions/domain/SRV.md) | [`SSHFP`](functions/domain/SSHFP.md) | [`TLSA`](functions/domain/TLSA.md) | [`DS`](functions/domain/DS.md) | dual host | create-domains | [`NO_PURGE`](functions/domain/NO_PURGE.md) | get-zones | | ------------- | ---------------- | ------------ | --------- | ------------------------------------ | -------------------------------- | ------------------------------------------------- | -------------------------------- | ------------------------------------ | -------------------------------- | -------------------------------- | -------------------------------- | ------------------------------------ | ---------------------------------- | ------------------------------ | --------- | -------------- | ------------------------------------------ | --------- | | [`AKAMAIEDGEDNS`](providers/akamaiedgedns.md) | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | -| [`AUTODNS`](providers/autodns.md) | ❌ | ✅ | ❌ | ✅ | ❌ | ❔ | ❔ | ❔ | ❌ | ❔ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | +| [`AUTODNS`](providers/autodns.md) | ❌ | ✅ | ❌ | ✅ | ✅ | ❔ | ❔ | ❔ | ❌ | ❔ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | | [`AXFRDDNS`](providers/axfrddns.md) | ❌ | ✅ | ❌ | ❔ | ✅ | ✅ | ❔ | ✅ | ✅ | ❔ | ✅ | ✅ | ✅ | ❔ | ❌ | ❌ | ❌ | ❌ | | [`AZURE_DNS`](providers/azure_dns.md) | ✅ | ✅ | ❌ | ❌ | ✅ | ❔ | ❌ | ❌ | ✅ | ❔ | ✅ | ❌ | ❌ | ❔ | ✅ | ✅ | ✅ | ✅ | | [`BIND`](providers/bind.md) | ✅ | ✅ | ❌ | ❔ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | diff --git a/providers/autodns/autoDnsProvider.go b/providers/autodns/autoDnsProvider.go index 7682118c5..cd0184966 100644 --- a/providers/autodns/autoDnsProvider.go +++ b/providers/autodns/autoDnsProvider.go @@ -20,7 +20,7 @@ import ( var features = providers.DocumentationNotes{ providers.CanGetZones: providers.Can(), providers.CanUseAlias: providers.Can(), - providers.CanUseCAA: providers.Cannot(), + providers.CanUseCAA: providers.Can(), providers.CanUseDS: providers.Cannot(), providers.CanUsePTR: providers.Cannot(), providers.CanUseSRV: providers.Can(), @@ -144,6 +144,13 @@ func (api *autoDNSProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, e record.GetTargetField(), ) } + if record.Type == "CAA" { + resourceRecord.Value = fmt.Sprintf("%d %s \"%s\"", + record.CaaFlag, + record.CaaTag, + record.GetTargetField(), + ) + } resourceRecords = append(resourceRecords, resourceRecord) } @@ -236,6 +243,14 @@ func recordsToNative(recs models.Records) ([]*models.Nameserver, uint32, []*Reso ) } + if record.Type == "CAA" { + resourceRecord.Value = fmt.Sprintf("%d %s \"%s\"", + record.CaaFlag, + record.CaaTag, + record.GetTargetField(), + ) + } + resourceRecords = append(resourceRecords, resourceRecord) } }