A simple script to replicate the ol' DynDNS functionality.
git clone https://github.com/Sleavely/cloudflare-dyn-ip-updater.git
cd cloudflare-dyn-ip-updater
npm install
Environment variables (can be set with a .env
file):
- CLOUDFLARE_EMAIL (required)
- CLOUDFLARE_APIKEY (required) You can find this under "My Profile" in CF
- CLOUDFLARE_DOMAIN (required) The domain you wish to keep updated. E.g.
home.example.com
- REFRESH_RATE Number of minutes between checking for new IP.
- DEBUG Set to
*
to log verbosely.
DEBUG="*" npm start
It is recommended you run it as a background service in e.g. pm2
unless you are keen to keep network traffic at a minimum.