Coder Social home page Coder Social logo

cloudflare-dyndns's Introduction

CloudFlare Dynamic DNS Updater

This is an extremely simple tool to update CloudFlare dynamic DNS entries. It's sole purpose is to periodically query the external IP address of the machine it is running on, and modify the DNS entry accordingly. Opposed to a few scripts out there that do a one shot update requiring regular cron sheduling, this one is more aimed to environments where you can configure it as a service and leave the updater running in the background.

Installation and usage

The tool in written in Go and follows the usual installation method:

$ go get github.com/karalabe/cloudflare-dyndns
$ cloudflare-dyndns --help

Usage of cloudflare-dyndns:
  -domains string
      Comma separated domain list to update
  -key string
      CloudFlare authorization token
  -ttl int
      Domain time to live value (default 120)
  -update duration
      Time interval to run the updater (default 1m0s)
  -user string
      CloudFlare username to update with

Running from Docker

The CloudFlare updater is available as a Docker container too in the form of a Docker Hub automated build. To use it, simply pull the images and start with the same flags you would use for the standalone version.

$ docker pull karalabe/cloudflare-dyndns
$ docker run -d --restart=always karalabe/cloudflare-dyndns [...]

Above we've also set a restart policy to always start up the DNS updates even in the face of complete machine reboots.

cloudflare-dyndns's People

Contributors

karalabe 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.