Skip to content

siygle/node-ddclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-ddclient

Cause current ddclient not work in cloudflare DNS service so just implement a simple one in nodejs.
It only work for cloudflare for now.

Inspired by cloudflare-ddclient.

Install

Just execute node-ddclient and put a server config at the same level of node-ddclient.

module.exports = {
  cronRule: "00 */5 * * * *",
  getIp: "http://ifconfig.me/ip",
  cloudflare: {
    email: "youremail@example.com",
    apikey: "API_TOKEN",
    domain: "DOMAIN",
    subdomain: ["SUB-DOMAIN1", ...]
  }
};

Run as system daemon

Use cron and daemon to run as daemon regular. You can copy node-ddclient.conf to /etc/init to setup upstart, don't forget to change YOUR_NODE_DDCLIENT_PATH to real file path.

Changelog

v1.0.0 - Change subdomain type to Array, support multiple subdomain now.
v1.1.0 - Remove TMP_FILE && fs module dependencies.

About

A simple ddclient alternation by nodejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published