GithubHelp home page GithubHelp logo

detdns's Introduction

detdns

A basic, IPv6 capable, Python daemon to update Dyn DNS (or other compatible services)

Pre-requisites

  • Python3
  • A Dyn account or another compatible provider.

Usage

  • Git clone this repository
  • Change into the cloned directory and install the extra required Python packages
cd detdns
sudo pip3 install -r requirements.txt
  • Create a detdns_config.py using the example for syntax, filling in the username, password, and hostname that you'd like to update.
  • Run inside a screen session with ./detdns.py or launch from systemd/etc.

Systemd

If you're running Ubuntu or another distribution that uses systemd and you'd like detdns to run on startup, copy the detdns.service file to your systemd service definition folder. Usually /etc/systemd/system/

sudo cp detdns.service /etc/systemd/system/

Edit the service file and update username to be a low privileged local user that you want to run the script as, and also the path to the script itself. Update systemd and start the daemon

sudo systemctl enable detdns
sudo systemctl --system daemon-reload
sudo service detdns start

Check the daemon is running correctly with service detdns status

Notes:

  • IPv4 address is obtained by calling Dyn's checkip service.
  • IPv6 address is obtained by creating a socket to Sprint's 2600:: address. eg. Will fail without a default route.
  • members.dyndns.org doesn't have an AAAA record, so requires IPv4 connectivity to update.
  • Uses HTTPS unlike some other clients

detdns's People

Contributors

detobate avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

tasn

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.