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.
bashcurlorwget- 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 fileconfigin 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
- This is a bash script, so you may need to specify
SHELL=/bin/bashin crontab. cronis often configured to send mail when a command outputs to the console. Set configuration optionCONSOLE_OUTPUT_LEVELto silence non-error or all console outputs if you want to avoid this mail.
Forked from the Simple Bash No-IP Updater by AntonioCS
2013 © Matthew D. Mower
2012 © AntonioCS