A bash script to update the IP address of a no-ip.com hostname.
Prerequisites
- curl
Usage
- Configure the script with the correct username, password, hostname, IP cache file, and log file
- Make it executable (
chmod +x) - Run it (
./noipupdater.sh)
Automation
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: If the cron job doesn't execute correctly, try these suggestions:
- Add this line to your crontab:
SHELL=/bin/bash - Remove the
.shextension
Forked from the Simple Bash No-IP Updater by AntonioCS
2013 © Matt Mower