🗝
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD2
-rw-r--r--zoner.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 61492ba..13aea4b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
 pkgname=zoner
-pkgver=2
+pkgver=3
 pkgrel=1
 arch=(any)
 makedepends=(python-build python-installer python-wheel)
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)