A Python Utility for updating your DNS provider with your dynamic public IP.
- CloudFlare
- ...more to come
curl -sSL https://raw.githubusercontent.com/chasenicholl/ip-lock/master/install.sh | bash
You can use the config-sample.yml
as a template, but remember to fill in with your own credentials.
The Cloudflare Auth Token will need Zone and DNS permissions.
ip_lock path/to/your/config.yml (--verbose --force --dry-run)
I recommend installing this as a scheduled system task, like a cronjob.
crontab -e
Add this line to your crontab, to check every minute for a Public IP address change.
*/1 * * * * /usr/local/bin/ip_lock /absolute/path/to/your/config.yml (--verbose --force --dry-run) >> /var/log/ip_lock.log 2>&1