aly / ddnsupdate.py

0 likes
0 forks
1 files
Last active 1440821822
Script to update a DDNS provider (currently namecheap, but any provider that offers a simple http interface should work if the url is replaced) with your current IP
1 import requests,time,socket,json,sys
2
3 def init_settings():
4 try:
5 with open("settings.json") as f:
6 settings = json.load(f)
7 return settings
8 except:
9 with open("settings.json", "w") as f:
10 settings = dict(domain="REPLACE_WITH_DOMAIN",