Giter Club home page Giter Club logo

cloudflare-ddns's Introduction

cloudflare-ddns

Script to set up Cloudflare dynamic DNS. Dynamic DNS is a service that ensures that your domain's A Records are always pointing at the correct IP address. Should your webserver's IP address ever change, this script (while ran on the same machine as the webserver) ensures that your records always match the server's IP address. This is most useful if set as a scheduled task in crontab.

Pre-requisite Knowledge

  1. This seems obvious but you need a domain through Cloudflare. You also need to set up one or more A Records in their DNS page. Note: This script does not add new A Records, it only keeps current ones updated with your current IP address.

  2. Account Email -- This is just the email address your Cloudflare account is under.

  3. Global API Key -- This is found in the Cloudflare website under "My Profile > API Keys > Global API Key"

  4. Zone ID -- This ID is a random string of letters and numbers specific to your domain name. Found in the Cloudflare website on your domain's "Overview" page written as "Zone ID"

Setup

  1. Clone the repo: git clone https://github.com/Starttoaster/cloudflare-ddns.git

  2. Change directory: cd cloudflare-ddns/

  3. Run the script: ./cloudflare.sh

After answering a few questions, the script will complete. You can then run the same script again to update your A Records, or configure as a task in Crontab to run automatically.

cloudflare-ddns's People

Contributors

starttoaster avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cloudflare-ddns's Issues

Changing of root a record when updating ip.

When updating and you have a root A type record (example.com) it changes the A type name to "example". Meaning that your site root won't work anymore ("example.com"), and instead it creates a subdomain ("example.example.com")

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.