1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

GCORE: enable ALIAS records (#2802)

This commit is contained in:
Yuhui Xu
2024-01-18 06:06:36 -08:00
committed by GitHub
parent fbd436f607
commit 5dfc8ca935

View File

@ -43,7 +43,7 @@ func NewGCore(m map[string]string, metadata json.RawMessage) (providers.DNSServi
var features = providers.DocumentationNotes{
providers.CanAutoDNSSEC: providers.Cannot(),
providers.CanGetZones: providers.Can(),
providers.CanUseAlias: providers.Cannot(),
providers.CanUseAlias: providers.Can(),
providers.CanUseCAA: providers.Can(),
providers.CanUseDS: providers.Cannot(),
providers.CanUseLOC: providers.Cannot(),
@ -136,6 +136,13 @@ func (c *gcoreProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, exist
var deletions []*models.Correction
var reports []*models.Correction
// Gcore auto uses ALIAS for apex zone CNAME records, just like CloudFlare
for _, rec := range dc.Records {
if rec.Type == "ALIAS" {
rec.Type = "CNAME"
}
}
changes, err := diff2.ByRecordSet(existing, dc, nil)
if err != nil {
return nil, err