Code Monkey home page Code Monkey logo

cf-ddns-go's Introduction

cf-ddns-go

wacky'6 second iteration for CloudFlare DDNS.

Key features:

  • IPv6 DDNS support
  • Network interface address detection
  • Daemon (as a service) or One-Shot (as a command line tool)
  • [ More to come ]

Usage

CF_KEY=abcdef [email protected] cf-ddns -6 hostname.example.com -D
  • CF_KEY is the CloudFlare access key
  • CF_EMAIL is the CloudFlare account email address
  • -6 hostname.example.com instructs the program to set DNS AAAA record for hostname.example.com
  • -D instructs the progrma to run like a command line tool, instead of going into daemon mode
  • By default, the program detects IPv6 address by looking at the network interface IP addresses

Daemon Installation (Debian / Ubuntu)

  1. Download (or build) the binary, put it to /usr/local/bin/cf-ddns
  2. Add executable permission chmod +x /usr/local/bin/cf-ddns
  3. Modify and add the sample systemd unit file to OS
    • Sample file: etc/systemd/system/cf-ddns.service
    • Set CF_KEY and CF_EMAIL environment variable to your Cloudflare access key and email address
    • Set desired hostname (V6_HOST)
  4. Enable the cf-ddns service in systemd

cf-ddns-go's People

Contributors

wacky6 avatar

Stargazers

 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.