diff options
Diffstat (limited to 'zoner.py')
-rw-r--r-- | zoner.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zoner.py b/zoner.py index 7772384..077e4b5 100644 --- a/zoner.py +++ b/zoner.py @@ -87,7 +87,7 @@ def check_porkbun(resp: httpx.Response): def retrieve(domain: str): resp = httpx.post( - f"https://porkbun.com/api/json/v3/dns/retrieve/{domain}", + f"https://api.porkbun.com/api/json/v3/dns/retrieve/{domain}", json={"apikey": cfg["api_key"], "secretapikey": cfg["secret_key"]}, ) check_porkbun(resp) @@ -95,7 +95,7 @@ def retrieve(domain: str): if record["type"] == "NS": continue if record["type"] == "MX": - # add prioty to content + # add priority to content record["content"] = f"{record['prio']} {record['content']}" if record["ttl"] == None: record["ttl"] = 600 @@ -157,7 +157,7 @@ def balance(domain: str): for record in to_delete: print(f"delete {record}") resp = httpx.post( - f"https://porkbun.com/api/json/v3/dns/delete/{domain}/{record.meta['id']}", + f"https://api.porkbun.com/api/json/v3/dns/delete/{domain}/{record.meta['id']}", json={"apikey": cfg["api_key"], "secretapikey": cfg["secret_key"]}, ) check_porkbun(resp) |