Skip to content

Simple scrip to update records on the Hetzner DNS service based on the current public IP.

License

Notifications You must be signed in to change notification settings

twfce/hdns-myip-updater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hetzner DNS - IP Updater (DDNS) 🕸️

Docker - Build & Push

Simple script to update DNS entries on Hetzner DNS service. At the moment it only works for A records.

Used APIs

The following public APIs are used to request the current public IP.

Required Environment Variables

Name Description
HDNS_TOKEN Hetzner DNS API Key (https://docs.hetzner.com/dns-console/dns/general/api-access-token/)
SLEEP_TIMER How long to sleep between runs in seconds

Example Configuration (config.json)

The script uses a config.json file in the following format. The file should be mounted to /app/config.json.

{
  "zones": {
    "example.com": {
      "records": [
        "@",
        "www",
        "test"
      ]
    }
  }
}

About

Simple scrip to update records on the Hetzner DNS service based on the current public IP.

Topics

Resources

License

Stars

Watchers

Forks