A command-line utility for managing DNS records through the Hetzner DNS API.
Install using bbin:
bbin install io.github.200ok-ch/hetzner
- Pull DNS records from Hetzner
- Validate DNS configurations
- Push DNS record changes to Hetzner
- Support for selective zone operations
# Pull DNS records
hetzner pull
# Validate configurations
hetzner validate
# Push changes
hetzner push
# Work with specific zones
hetzner pull --zones=example.com,example.org
The Hetzner DNS API token can be provided in three ways:
- Config file:
hetzner.yml
with the keytoken
- Environment variable:
HETZNER_TOKEN
- Command line flag:
-t
or--token
pull
: Download DNS records from Hetznervalidate
: Verify DNS configurationspush
: Upload DNS record changes to Hetzner-h
or--help
: Display help information-v
or--version
: Show version number
-t --token
: Your Hetzner DNS API token (optional, see Authentication)-z --zones
: Comma-separated list of zone names to operate on (optional)-e --endpoint
: API endpoint URL [default: https://dns.hetzner.com/api]
tbd.