jamiehaywood / cloudflare-ddns

A tiny node script that can be run on a cron job to update cloudflare with your latest IP address

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloudflare DDNS

  1. Create an A record in Cloudflare pointing at your current IP

add a cloudflare a record

  1. Get your ZONE_ID from the overview tab for your CF domain. Add it to .env

  2. Get your GLOBAL_API_KEY from the /profile/api-tokens section. Add it to .env

  3. Add the email you use to login to CF to the AUTH_EMAIL key in .env

  4. Add the name of your url or the ZONE_NAME to .env

To run on a cron:

  1. Type crontab -e in the terminal

  2. */30 * * * * node <location of index.js on your machine> - This runs the node script at 30 minute intervals

About

A tiny node script that can be run on a cron job to update cloudflare with your latest IP address


Languages

Language:JavaScript 96.5%Language:Shell 3.5%