Skip to content

A webservice that talks against cloudflares DNS API to realize DynDNS. Works with FritzBox DynDNS.

Notifications You must be signed in to change notification settings

fblz/simple-dyndns

Repository files navigation

simple-dyndns

Simple web application to accept dynamic updates by f.e. a fritzbox and set an a name record via cloudflares dns api.

Install

  1. go build -trimpath -ldflags=-buildid=
  2. mkdir /opt/simple-dyndns
  3. mv simple-dyndns /opt/simple-dyndns
  4. chmod +x /opt/simple-dyndns/simple-dyndns
  5. cp simple-dyndns.service /etc/systemd/system
  6. systemctl daemon-reload
  7. systemctl start simple-dyndns.service (will fail because no config, but DynamicUser folders are created)
  8. create config under /var/lib/private/simple-dyndns/config.json
  9. (optional) ln -s /var/lib/private/simple-dyndns/config.json /etc/simple-dyndns/config.json
  10. systemctl enable --now simple-dyndns.service
  11. create a reverse proxy to expose http://127.0.1.1:8080 to the internet

Configure FritzBox

Field Value
Update-URL https://%hostname%(/%path%)?fqdn=<domain>&token=<pass>&ipv4=<ipaddr>
Replace %hostname% and include %path% if applicable
Domainname The dyndns hostname that should be updated
Benutzername not used, just put none
Kennwort The web_token for the hostname

About

A webservice that talks against cloudflares DNS API to realize DynDNS. Works with FritzBox DynDNS.

Resources

Stars

Watchers

Forks

Languages