mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Pass of ALIAS support across supported providers. Allow ALIAS ttl
Supports ALIAS for Dnsimple, Dyn, Ns1, and PowerDNS. Notes added to readme about some of the quirks found while working with them. TTL seems to mostly be accepted on ALIAS records so it has been added back, what it means seems to vary across providers, thus notes.
This commit is contained in:
@@ -48,6 +48,7 @@ class Ns1Provider(BaseProvider):
|
||||
'value': record['short_answers'][0],
|
||||
}
|
||||
|
||||
_data_for_ALIAS = _data_for_CNAME
|
||||
_data_for_PTR = _data_for_CNAME
|
||||
|
||||
def _data_for_MX(self, _type, record):
|
||||
@@ -140,6 +141,7 @@ class Ns1Provider(BaseProvider):
|
||||
def _params_for_CNAME(self, record):
|
||||
return {'answers': [record.value], 'ttl': record.ttl}
|
||||
|
||||
_params_for_ALIAS = _params_for_CNAME
|
||||
_params_for_PTR = _params_for_CNAME
|
||||
|
||||
def _params_for_MX(self, record):
|
||||
|
Reference in New Issue
Block a user