Code Monkey home page Code Monkey logo

node-ddclient's Introduction

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: "[email protected]",
    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.

node-ddclient's People

Contributors

siygle avatar

Stargazers

Cordeiro avatar Andrew Zappella avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.