Coder Social home page Coder Social logo

cloudflare_ddns_node's Introduction

Cloudflare DDNS Node

Version License

Dynamically update DNS record on IP change using Cloudflare API

Installation & Usage

Before starting, you'll need NodeJS in order to run this program
I recommend using the LTS version but it shouldn't matter

Firstly, clone this repository

git clone https://github.com/TheDavidDelta/cloudflare_ddns_node

Then install the project's dependencies detailed in the package.json file by running

npm i

Now create a .env file with the following fields

TOKEN=your cloudflare token
ZONE=the zone where the record is
RECORDS=comma separated list of record names

You can generate a Cloudflare Token here

Lastly, just schedule its execution with any kind of software
For example, you may like to use Linux's crontab or Windows' Task Scheduler
Here's an example for running the program every 6 hours using Linux's crontab

0 */6 * * * cd /path/to/the/folder/cloudflare_ddns_node && npm start

Make sure to configure folder's and crontab's user permissions correctly

License

Copyright © 2020 TheDavidDelta
This project is GNU GPLv3 licensed

cloudflare_ddns_node's People

Contributors

thedaviddelta avatar

Watchers

 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.