Git Product home page Git Product logo

rpi-dyndns's Introduction

Dynamic DNS updater for the ARM based Raspberry PI.

Get youself a account at spDYN or similar provider. If you choose a different provider - make sure to read the Customising section.

This images target the ARM architecture, uses the well known ddclient library and is based on alpine Linux, and thus leads to a slimmer image.

Build Status

Find the source code at GitHub or the ready-to-run image in the DockerHub and do not forget to star the repository ;-)

Running

Get ready to roll and run the container:

$ docker run --detach \
             --name ddclient \
             --env HOSTNAME=yourdomain.spdns.de \
             --env UPDATE_TOKEN=imwg-futl-mzmw \
             --restart unless-stopped \
             netzfisch/rpi-dyndns

Customising

To customise change ddclient.conf to your needs, e.g. see possible configuration options at this template file. Make sure to use '@@hostname/login/password@@' syntax, otherwise variable replacement will fail!

Than build for yourself and run again:

$ git clone [email protected]:netzfisch/rpi-dyndns.git && cd rpi-dyndns
$ docker build -t netzfisch/rpi-dyndns:custom .
$ docker run ... see above parameters
             netzfisch/rpi-dyndns:custom

If you just need to manually setup, start the container without environment parameters and replace variables with sed:

$ env HOSTNAME=yourdomain.spdns.de LOGIN=yourdomain.spdns.de UPDATE_TOKEN=imwg-futl-mzmw
$ docker exec ddclient sed -i -e 's/@@hostname@@/$HOSTNAME/g' /etc/ddclient.conf
$ ...

Debugging

Check that the environment includes your credentials:

$ docker exec -it ddclient env

After running docker exec ddclient setup look up, if configuration was set right:

$ docker exec ddclient cat /etc/ddclient/ddclient.conf

Finally you could dig into the container:

$ docker exec -it ddclient ash

Contributing

If you find a problem, please create a GitHub Issue.

Have a fix, want to add or request a feature? Pull Requests are welcome!

License

The MIT License (MIT), see LICENSE file.

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.