Skip to content

saak2820/rpi-dyndns

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Dynamic DNS updater for the ARM based Raspberry PI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 99.0%
  • Other 1.0%