Sign inSign up

markush0/hetzner-dns-updater

By markush0

•Updated 7 months ago

Hetzner DNS-Updater for Fritz!Box Custom interface

Image
0

1.0K

markush0/hetzner-dns-updater repository overview

⁠Hetzner dynDNS-updater

⁠Fritz!Box Custom DynDNS-Client

Docker Image CI

If you have the nameserver of your domain pointed to the Hetzner DNS nameservers and if you have a Fritz!Box you can user this docker container to update your changing IPs.

This container creates a FastAPI-Instance which receives the date from the Frit!Box via GET-parameters. And then uses the Hetzner DNS-API to set the A-record of the given zone to your IP.

You can see the FastAPI-Docs at http://yourlocalip:8000/docs⁠.

⁠Installation
  1. edit the docker-compose.yml and change your credentials in the environment variables
    version: '3.3'
    services:
        hetzner-dns-updater:
            environment:
                - user=youruser
                - password=yourpass
                - target_host=example.com
                - api_key=hetznerapikey
            ports:
                - '8000:8000'
            image: markush0/hetzner-dns-updater:main
    
  2. Change your Fritz!Box DynDNS settings to "custom"
    1. Set your Update-URL to http://yourlocalip:8000/ip/?user=<username>&password=<pass>&host=<domain>&ip=<ipaddr>&ip6=<ip6addr>
    2. Change the IP (and port) where your container is running
    3. Domain name is your dns-zone which will be updated
    4. User and password are the credentials which you can define in the docker-compose file

Alternatively you can run the container without docker-compose

docker run markush0/hetzner-dns-updater:main --env=user=youruser --env=password=yourpassword --env=target_host=example.com --env=api_key=yourapikey

Tag summary

Content type

Image

Digest

sha256:df828429b…

Size

260 Bytes

Last updated

7 months ago

docker pull markush0/hetzner-dns-updater:sha256-83f5fcc841bfd81c27a82236bdf747dece1c4c7dfb8a9a2e4d78be940c2f07dd.sig