Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 1.28 KB

readme.md

File metadata and controls

37 lines (23 loc) · 1.28 KB

Bash No-IP Updater

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.

Prerequisites

  • bash
  • curl or wget
  • GNU coreutils
  • gzip (optional, for log rotation)

Usage

noipupdater.sh [-c /path/to/config] [-i 123.123.123.123]

  • -c (optional): Path to config file (see config_sample). If this parameter is not specified, then the script will look for file config 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.

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: This is a bash script, so you may need to specify SHELL=/bin/bash in crontab.

Credits

Forked from the Simple Bash No-IP Updater by AntonioCS

2013 © Matthew D. Mower
2012 © AntonioCS