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:
@ -43,7 +43,7 @@ func NewGCore(m map[string]string, metadata json.RawMessage) (providers.DNSServi
|
|||||||
var features = providers.DocumentationNotes{
|
var features = providers.DocumentationNotes{
|
||||||
providers.CanAutoDNSSEC: providers.Cannot(),
|
providers.CanAutoDNSSEC: providers.Cannot(),
|
||||||
providers.CanGetZones: providers.Can(),
|
providers.CanGetZones: providers.Can(),
|
||||||
providers.CanUseAlias: providers.Cannot(),
|
providers.CanUseAlias: providers.Can(),
|
||||||
providers.CanUseCAA: providers.Can(),
|
providers.CanUseCAA: providers.Can(),
|
||||||
providers.CanUseDS: providers.Cannot(),
|
providers.CanUseDS: providers.Cannot(),
|
||||||
providers.CanUseLOC: providers.Cannot(),
|
providers.CanUseLOC: providers.Cannot(),
|
||||||
@ -136,6 +136,13 @@ func (c *gcoreProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, exist
|
|||||||
var deletions []*models.Correction
|
var deletions []*models.Correction
|
||||||
var reports []*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)
|
changes, err := diff2.ByRecordSet(existing, dc, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Reference in New Issue
Block a user