Skip to content

Bash script updates DNS-O-Matic services with a dynamic IP address

License

Notifications You must be signed in to change notification settings

ethanpeterson/dnsomatic-ddns-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dnsomatic-ddns-updater

Bash script updates DNS-O-Matic services with a dynamic IP address. Running this script daily will update your dynamic IP address with DNS-O-Matic if your IP address changes or it's the 14th or 28th of the month.

Requirements

The following is needed to sync your dynamic IP address with DNS-O-Matic:

Getting Started

Download the script and update the variables section with your specific settings. Setup the script with execute permissions, e.g. sudo chmod+ dnsomatic-ddns-updater.sh Typically cron is used to schedule jobs, e.g. once a day

Example crontab set up:

$ sudo su
$ crontab -e
Then add the script per the below table...
# +---------------- minute (0 - 59)
# |  +------------- hour (0 - 23)
# |  |  +---------- day of month (1 - 31)
# |  |  |  +------- month (1 - 12)
# |  |  |  |  +---- day of week (0 - 6) (Sunday=0 or 7)
# |  |  |  |  |
  0  1  *  *  * /bin/bash /opt/myscripts/dnsomatic-ddns-updater.sh

Enjoy.

Contributing

Copyright (c) 2021 @ethanpeterson

About

Bash script updates DNS-O-Matic services with a dynamic IP address

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages