Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 979 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 979 Bytes

ip-trigger

Low cost artisan dyndns.

Automatically update DNS records with multiple providers. Also can send emails when the ip address of the host changes.

Requirements

Docker, docker-compose.

(On a pi? Install following these: https://www.raspberrypi.org/blog/docker-comes-to-raspberry-pi/, https://github.com/hypriot/arm-compose)

Setup

Clone the repo git clone git@github.com:vekerdyb/ip-trigger.py

Rename config.py.tmp to config.py and change the values. Uncomment any backend you want to use.

Run: docker-compose run ip-trigger python ip-trigger.py or simply ./run.sh.

Add a cronjob to run ip-trigger.py as often as you deem fit.

E.g. I run it once every hour, at half past:

30 * * * * /<path>/ip-trigger/run.sh

On a Raspberry Pi

Do as above but use ./run.pi.py

Supported backends:

  • Railgun (sends an email when the IP changes)
  • Namecheap DynDNS
  • Cloudflare

Drop me a line or submit a pull request if you'd like to add more.