|rune 84b6af5f71 Merge remote-tracking branch 'origin/master'||4 months ago|
|.gitignore||5 months ago|
|README.md||4 months ago|
|config-template.ini||5 months ago|
|py-dyndns.py||4 months ago|
PY-DYNDNS is a small Python app that updates DNS records on you Digital Ocean account. This app is not as polished as its NodeJs counterpart DYNDNS, amongst other things you have to be able to find the domain id(s) of the domain(s) you wish to update.
Clone this repo with
git clone https://gitlab.no/rune/py-dyndns.git. To get your API key, log in to your Digital Ocean account and click the API link at the top of the page. Follow the instructions! Edit the
config.json file with your information.
config.ini and fill in the values needed.
This is made based on Python 3 so you need Python3 to use it!
Change permission of the file to be excecutable
chmod +x py-dyndns.py and run it with
To update all subdomains in config.ini run the app without arguments.
The best way to use this is with cron. To run the app every second hour create a cron job like this:
0 1-23/2 * * * py-dyndns.py >/dev/null 2>&1