Skip to content

Python script to check current host/alias IPs and update them when needed.

License

Notifications You must be signed in to change notification settings

memachado/dynu-dns-update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dynu-dns-update

Python script to check current host IPs and update them when needed.

install

You can either run this on your computer or on a docker

  1. Clone this repo

  2. Create a config.json like this

         {
             "credentials": {
                 "user": "",
                 "pass": ""
             },
             "endpoint": "https://api.dynu.com/nic/update?hostname=_HOSTNAME_&myip=_CURRENT_IP_",
             "hosts": [
                 "somehost.com",
                 "anotherhost.com"
             ]
         }
  3. Build the docker docker build -t dynu-dns .

  4. Run it

config

You need to provide user and password in the config.json. I prefer to use the sh256 password, as dynu accepts it.

You can choose any url from the reference documentation provided, but the one in the endpoint above works fine.

You can choose how often the cron will execute the script editing the cronjob file and rebuilding the container

reference

https://www.dynu.com/DynamicDNS/IPUpdateClient/cURL

About

Python script to check current host/alias IPs and update them when needed.

Topics

Resources

License

Stars

Watchers

Forks