kutzilla / docker-hetzner-ddns

A Docker image that allows you to use Hetzner DNS as a DynDNS Provider
MIT License
25 stars 8 forks source link

Build Status Docker Pulls

Docker Hetzner DDNS

This Docker image will allow you to use the Hetzner DNS Service as a Dynamic DNS Provider (DDNS).

How does it work?

The Go script inside this Docker Image periodically checks the DNS record with the Hetzner DNS API. It also checks the current public IP of the network, the container is running on. If the DNS record does not match the current public IP, it will update the record. Therefore your DNS record updates dynamically to the public IP.

Usage

Quick Setup:

docker run \
-e ZONE_NAME=example.com \ 
-e API_TOKEN=my-secret-api-token \
-e RECORD_TYPE=A \
kutzilla/hetzner-ddns

If you prefer command-line arguments, you can use this command:

docker run kutzilla/hetzner-ddns example.com my-secret-api-token A

Parameters

Optional Parameters

Build

Build the latest version of the Docker image with the following command:

docker build -t kutzilla/hetzner-ddns .