Skip to content

Commit

Permalink
GCORE: enable ALIAS records (#2802)
Browse files Browse the repository at this point in the history
  • Loading branch information
xddxdd committed Jan 18, 2024
1 parent fbd436f commit 5dfc8ca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion providers/gcore/gcoreProvider.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5dfc8ca

Please sign in to comment.