Code Monkey home page Code Monkey logo

cfddns's Introduction

cfddns - CloudFlare Dynamic DNS updater

A simple dynamic DNS updater for the CloudFlare.com API, written in PHP. Requires PHP 5.5.

Installing

Each release of cfddns includes a cfddns.phar file containing all files needed to run the tool. You can find a list of releases and the available downloads at https://github.com/deefour/cfddns/releases

Download the cfddns.phar and put it in a directory in your $PATH.

Configuration

cfddns reads an INI configuration file to make proper API calls against CloudFlare. An annotated template can be found below and at https://github.com/deefour/cfddns/blob/master/.cfddns.template

; Your CloudFlare API key
apikey=your_api_key_here

; The email address associated with your CloudFlare account
email[email protected]

; The full domain you wish to set the A record for.
;
; The TLD should already exist within your cloudflare account. It does not matter
; if an A record for the subdomain already exists
hostname=home.deefour.me

Execution

The updater is only useful if run regularly. This can be done by creating a cron job for cfddns.

*\2 * * * * /usr/bin/env php /usr/local/bin/cfddns.phar -c ~/.cfddns

Changelog

0.3.2 - May 25, 2014

  • Code formatting

0.3.1 - July 20, 2014

  • Fixed PHP notices
  • Upgraded dependencies

License

Copyright (c) 2014 Jason Daly (deefour). Released under the MIT License

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.