mirror of
https://github.com/Hyperspeed1313/porkbun-dynamic-dns-python.git
synced 2026-01-31 04:41:21 +00:00
parent
a8e6803855
commit
facb8e01a4
1 changed files with 2 additions and 1 deletions
|
|
@ -52,7 +52,8 @@ if len(sys.argv)>2: #at least the config and root domain is specified
|
||||||
myIP=sys.argv[5]
|
myIP=sys.argv[5]
|
||||||
else:
|
else:
|
||||||
myIP=getMyIP() #otherwise use the detected exterior IP address
|
myIP=getMyIP() #otherwise use the detected exterior IP address
|
||||||
deleteRecord()
|
|
||||||
|
deleteRecord()
|
||||||
|
|
||||||
if getRecords(fqdn)["status"]=="ERROR":
|
if getRecords(fqdn)["status"]=="ERROR":
|
||||||
print(createRecord()["status"])
|
print(createRecord()["status"])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue