Coder Social home page Coder Social logo

dyndns-container's Introduction

dynip

Adstract

DynIP is a dynamic ip tool that determines the external IP address and updates a dns servics. This container serves a microservice as an API for other services.

Features

  • Microservice - API server.
  • Plugin Architecture - A simple mechanism to support multiple dns providers
  • Hover Plugin - Access client for the Hover API
  • Client - A cli client for use with crond to invoke the lookup/update

Feature Detail

Microservice

  • /ip Lookup the external IP. Returns previous and current ip, as well as the last timestamp inside a status envelope.
  • /record Update the IP for an fqdn. This method takes plugin, name(host), and domain to form the fqdn for a specific service. There are two method get retrieve the dns record; the post updates the dns record with an additional param for ip.
  • /field Update the content for TXT record. This is the same parameters as /host.

Plugin Architecture

This provides a mechanism for connecting to DNS providers in a standard way. The interface is defined in the dyndns_plugin.py file.

Providers

  • Hover: Uses the api provided by hover. It is fairly simple and I will let the code speak for itself.

Client

The client.py provides a simple script to use the API. This should be referenced for any other clients using the API. For consistency the client uses the same config file /etc/container/dyndns.yml.

Development

Configuration

To configure the service a config file /etc/container/dyndns.yml must be provided. Below is an example only the hover plugin is working.

plugins:
  - name: hover
    username: {USERNAME}
    password: {PASSWORD}
    domains:
      {DOMAIN}.{TLD}:
      - {HOST1}
      - {HOST2}
      - {HOST3}
  - name: route53
    user: example
    password: actualpwd
    domains:
      foobar.org
      - xyz
      - abc

Architecture

Context

Context Diagram

Container

Containter Diagram

Component

Component Diagram

Administration

Issues

The official to list is kept in a GitHub Issue List

Notes

dyndns-container's People

Contributors

gautada avatar

Watchers

James Cloos avatar  avatar

dyndns-container's Issues

Checklist update

  • README conforms to the gist
  • .gitignore conforms to the gist
  • Confirm the drone.yml file
  • Volume folders are present (development-volume & backup-volume)
  • docker-compose(.yml) works
  • Manifest folder present (and origin to private repository is correct
  • Issue List is linked to proper URI
  • Signoff ({date and signature of last check})
  • Confirm backup (maybe add to testing layer)
  • Confirm healthcheck (maybe add to testing layer)
  • Regenerate all architecture images
  • Decouple alpine upstream image in Containerfile, docker-compose.yml, and drone.yml

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.