Skip to content

chasenicholl/ip-lock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published