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:
committed by
Tom Limoncelli
parent
d401d5ec05
commit
5b71da6a48
@@ -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)
|
||||
}
|
||||
|
||||
///
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user