cloudflare-ddns
v1.0.0
Published
Dynamic DNS application for updating Cloudflare DNS records
Downloads
6
Readme
CloudflareDDNS
Dynamic DNS application for updating Cloudflare DNS records
Usage
var CloudflareDDNS = require("cloudflare-ddns");
var VallerDDNS = new CloudflareDDNS({
"cloudflare" : {
"token" : "your_cloudflare_token",
"email" : "[email protected]",
"domain" : "valler.ca"
},
"records" : {
"subdomain1.valler.ca" : "A",
"subdomain2.valler.ca" : "A",
},
"pusover" : {
"user" : "pushover_user_token",
"token" : "pushover_application_token"
},
});
//-----------------------------------------
// Sync it up with Cloudflare
//-----------------------------------------
VallerDDNS.sync();
Options
cloudflare.token
- Cloudflare API Tokencloudflare.email
- Email address you log into Cloudflare withcloudflare.domain
- Domain you want to check records forrecords
- Object of records to keep track of and update. Specified as:{ subdomain: record_type }
pushover.user
- Pushover user key (optional)pushover.token
- Pushover application token (optional)externalServices
- Array of extra hosts to check for external IP