Giter VIP home page Giter VIP logo

cloudflare-go's Introduction

cloudflare-go

Dynamic DNS record updater written in Golang

Pre-requisite

To actually interact with Cloudflare, this needs a separate file provided by you, with 3 lines. The name of the file should be credfile and have the following in order:

email address
global API key
zone identifier

How to find the attributes for credfile

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

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

  3. 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"

Use with Docker

Start your container: docker container run -d -v "$PWD/credfile:/config/credfile" starttoaster/cloudflare-go

View logs to see it run: docker logs <container name>

NOTE: You will only see text in the logs when the IP is updated. If you would like to test the program, you can change your DNS records to a random IP from the website, and watch as this script corrects them. Or you can connect to a VPN and watch as your records are updated with the VPNs IP address (remember to log out of the VPN, as you likely don't want your domain name pointed at the VPNs IP.)

cloudflare-go's People

Contributors

starttoaster avatar

Watchers

 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.