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

add ALIAS support for Name.com provider (#156)

This commit is contained in:
Pat Moroney
2017-07-19 11:23:17 -06:00
committed by Tom Limoncelli
parent d401d5ec05
commit 5b71da6a48
2 changed files with 7 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ func newProvider(conf map[string]string) (*nameDotCom, error) {
func init() {
providers.RegisterRegistrarType("NAMEDOTCOM", newReg)
providers.RegisterDomainServiceProviderType("NAMEDOTCOM", newDsp)
providers.RegisterDomainServiceProviderType("NAMEDOTCOM", newDsp, providers.CanUseAlias)
}
///

View File

@@ -27,6 +27,12 @@ func (n *nameDotCom) GetDomainCorrections(dc *models.DomainConfig) ([]*models.Co
actual[i] = r.toRecord()
}
for _, rec := range dc.Records {
if rec.Type == "ALIAS" {
rec.Type = "ANAME"
}
}
checkNSModifications(dc)
differ := diff.New(dc)