Update to remove URL and STEALTH records

* Removed conversion of URL and STEALTH records to CNAME records
* Updated test fixtures to remove URL conversion testing
This commit is contained in:
John Dale
2020-07-20 22:58:21 +00:00
parent f4aa96abe5
commit 9a2152d249
2 changed files with 4 additions and 9 deletions
+2 -7
View File
@@ -115,9 +115,6 @@ class EasyDNSClient(object):
resp = self._request('GET', path).json()
ret += resp['data']
# EasyDNS supports URL forwarding, stealth URL forwarding and DYNamic
# A records so we'll convert them to their underlying DNS record
# types before processing
for record in ret:
# change any apex record to empty string
if record['host'] == '@':
@@ -127,10 +124,8 @@ class EasyDNSClient(object):
if record['rdata'] == '@':
record['rdata'] = '{}.'.format(zone_name)
# change "URL" & "STEALTH" to a "CNAME"
if record['type'] == "URL" or record['type'] == "STEALTH":
record['type'] = 'CNAME'
# EasyDNS supports DYNamic A records so we'll convert these
# to their underlying DNS record type before processing
if record['type'] == "DYN":
record['type'] = 'A'
+2 -2
View File
@@ -106,7 +106,7 @@
"host": "cname",
"ttl": "300",
"prio": null,
"type": "URL",
"type": "CNAME",
"rdata": "@",
"geozone_id": "0",
"last_mod": "2020-01-01 01:01:01"
@@ -271,4 +271,4 @@
"start": 0,
"max": 1000,
"status": 200
}
}