A bash script to update the IP address of No-IP hostnames. Supports multiple hostname updates and log rotation (see config_sample
). Interprets No-IP protocol responses and follows client guidelines.
bash
curl
orwget
- GNU
coreutils
gzip
(optional, for log rotation)
noipupdater.sh [-c /path/to/config] [-i 123.123.123.123]
-c
(optional): Path to config file (seeconfig_sample
). If this parameter is not specified, then the script will look for fileconfig
in the same directory as the script.-i
(optional): Manually set the IP address that should be assigned to the hostname(s). If this paremter is not specified, the IP address will be auto-detected by No-IP.
Include the script in your cron file (crontab -e
):
Run script once each day at 5:30am:
30 5 * * * /path/to/noipupdater.sh
Run the script every fifteen minutes:
*/15 * * * * /path/to/noipupdater.sh
Note: This is a bash script, so you may need to specify SHELL=/bin/bash
in crontab.
Forked from the Simple Bash No-IP Updater by AntonioCS
2013 © Matthew D. Mower
2012 © AntonioCS