fix: Stop duplicating A and TLSA records and fix alts
This commit is contained in:
parent
f68186314b
commit
3c6829826f
5
varo.py
5
varo.py
@ -204,7 +204,7 @@ def verify_ALIAS(domain):
|
||||
"action": "getRecords",
|
||||
"zone": zone,
|
||||
"name": domain+"."+city_domain,
|
||||
"type": "ALIAS",
|
||||
"type": "A",
|
||||
"content": ""
|
||||
}
|
||||
url = "https://reg.woodburn.au/api"
|
||||
@ -281,8 +281,7 @@ def copy_to_alts(domain):
|
||||
}
|
||||
r = requests.post(url, headers=headers, json=data)
|
||||
r = r.json()
|
||||
if 'data' not in r:
|
||||
continue
|
||||
if 'data' in r:
|
||||
for record in r['data']:
|
||||
data = {
|
||||
"action": "deleteRecord",
|
||||
|
Loading…
Reference in New Issue
Block a user