mythsunwind / hetzner-dyndns-docker

Update DNS entry on Hetzner grapped from Fritzbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hetzner-dyndns-docker

Dockerfile and Ansible playbooks to update DNS entry on Hetzner grapped from Fritzbox.

The docker container executes the playbook every 5 minutes.

Build

docker build . -t hetzner-dyndns

Prepare

  1. Login to Fritzbox
  2. Go to Heimnetz | Netzwerk | Netzwerkeinstellungen
  3. Enable Statusinformationen über UPnP übertragen (if not already enabled)

Run

docker run -e "DNS_ZONE=<DOMAIN>" -e "API_KEY=<API-KEY>" hetzner-dyndns

Credits

Playbooks based on previous work from P. Haberkern (thedatabaseme) with the following adjustments:

  • Fritzbox UPNP interface does not need username/password
  • Don't update the record if the IP has not changed
  • Set TTL for DNS entry to 60 seconds instead of 24 hours

About

Update DNS entry on Hetzner grapped from Fritzbox

License:GNU General Public License v3.0


Languages

Language:Shell 55.9%Language:Dockerfile 44.1%