Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 917 Bytes

README.md

File metadata and controls

45 lines (26 loc) · 917 Bytes

ip-lock

A Python Utility for updating your DNS provider with your dynamic public IP.

Supported DNS Providers

  • CloudFlare
  • ...more to come

Installation

curl -sSL https://raw.githubusercontent.com/chasenicholl/ip-lock/master/install.sh | bash

Config File

You can use the config-sample.yml as a template, but remember to fill in with your own credentials.

API Permissions

The Cloudflare Auth Token will need Zone and DNS permissions.

Usage

ip_lock path/to/your/config.yml (--verbose --force --dry-run)

Usage as a cronjob

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