mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-11-11 17:00:30 +08:00
GCORE: enable ALIAS records (#2802)
This commit is contained in:
parent
fbd436f607
commit
5dfc8ca935
1 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue