|Rune Olsen 8fc18f83fc updated readme||1 month ago|
|.gitignore||1 month ago|
|README.md||1 month ago|
|dyndns-cli.py||1 month ago|
|dyndns_screen_1.png||1 month ago|
|license.txt||1 month ago|
|main.py||1 month ago|
|utils.py||1 month ago|
DO DynDNS is a small Python app that can:
./install.sh(remember to read/review the install.sh with a text editor)
/usr/local/binand create a .desktop file in
/usr/share/applications/for the main application (
The first run will create two files:
You will need edit the config.ini file in your favourite editor.
[DYNDNS] 'api_key': '<API KEY> from Digital Ocean at https://cloud.digitalocean.com/api_access', 'baseuri': 'example.tld', 'logfile': 'dyndns.log'
The API key you need to get from you DigitalOcean account. The baseuri are the top level domain you want to use as the base for your dynamic DNS solution.
The logfile can be named anything, but the
~/.config/dyndns/dyndns.log was created for you. So you don't need to change that.
.desktop file will look for an icon “dyndns.png” in
~/.config/dyndns/. You can copy your own icon to that folder and name it “dyndns.png” or you can copy the icon in the un-zipped folder. The application itself will also look for “dyndns.png” in the folder
This is the companion app for the gui app. This is meant to be executed via
It uses the same
config.ini file as the main app and updates all the domains found in the config file -
where the IP address on DigitalOcean Network service differs from your local IP address.
Edit crontab by executing
crontab -e and add the app to it.
Eg. to run once every other hour add the following line to your crontab:
0 */2 * * * dyndns-cli >/dev/null 2>&1
##Note If you want to run a dynamic DNS solution on a server (eg. not you main machine) you could use the standalone command line (cli) application py-dyndns. This application uses its own config.ini on the machine it is running on. Follow the instructions on the app's git page.