Code Monkey home page Code Monkey logo

dddd's Introduction

Go Report Card builds.sr.ht status

dddd

Self-hostable DynDNS Alternative

Overview

Having looked at other dynamic DNS solutions and realizing how simple the idea was, I decided to throw together a CLI that would update a DNS entry from a running server. The initial motivation came to me while setting up my at home VPN and looking up my IP address on DuckDuckGo. It returned an IP address via the Answers API, so my solution unironically uses the same. dddd hits the DuckDuckGo Answers API, parses the returned IP address, and will create or update a DNS entry in Cloudflare. I believe this solution would be easy to throw in a cronjob for scheduled updates, as well as manual invocation. Currently it is heavily driven by arguments or environment variables.

Usage

NAME:
   dddd - perform dynamic DNS updates in Cloudflare using DuckDuckGo Answers

USAGE:
   dddd [global options] command [command options] [arguments...]

VERSION:
   0.2.4

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --api-key key, -k key        Cloudflare API key [$CF_API_KEY]
   --email email, -e email      Cloudflare email [$CF_API_EMAIL]
   --ip IP, -i IP               IP address for the DNS entry [$DNS_IP]
   --name name, -n name         The name for the DNS entry (default: "@") [$DNS_NAME]
   --domain domain, -d domain   The domain to modify in Cloudflare [$DNS_DOMAIN]
   --type type, -t type         The type of the record [$DNS_TYPE]
   --log-level value, -l value  Set the log level of logger [$LOG_LEVEL]
   --help, -h                   show help
   --version, -v                print the version

dddd's People

Contributors

tcarrio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dddd's Issues

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.