Skip to content

📶 A Node script to update a Cloudflare record just from calling an URL.

Notifications You must be signed in to change notification settings

edorgeville/cloudflare-ddns.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare DDNS

A Node script to update a Cloudflare record just from calling an URL

How to use

Make a GET request to this URL :

http://ddns.yourserver.com/:secret/:ip

Replace :secret with your secret key and :ip with your new IP. You should get something like this :

http://ddns.yourserver.com/RGIz3lct2R25lHNks4b3/127.0.0.1

How to setup

git clone git@github.com:th3m4ri0/cloudflare-ddns.js.git
npm install
export API_KEY=
export EMAIL=
export SECRET=
export DOMAIN=
export SUBDOMAIN=
node index.js

How to setup on Heroku

Use the following button
Deploy to Heroku

or do it like a warrior :neckbeard: !

git clone git@github.com:th3m4ri0/cloudflare-ddns.js.git
heroku create
git push heroku master
heroku config:set API_KEY=
heroku config:set EMAIL=
heroku config:set SECRET=
heroku config:set DOMAIN=
heroku config:set SUBDOMAIN=

You can generate secret keys on random.org

Credits :

About

📶 A Node script to update a Cloudflare record just from calling an URL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published