Skip to content

200ok-ch/hetzner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hetzner DNS CLI Tool

A command-line utility for managing DNS records through the Hetzner DNS API.

Installation

Install using bbin:

bbin install io.github.200ok-ch/hetzner

Features

  • Pull DNS records from Hetzner
  • Validate DNS configurations
  • Push DNS record changes to Hetzner
  • Support for selective zone operations

Usage

# Pull DNS records
hetzner pull

# Validate configurations
hetzner validate

# Push changes
hetzner push

# Work with specific zones
hetzner pull --zones=example.com,example.org

Authentication

The Hetzner DNS API token can be provided in three ways:

  1. Config file: hetzner.yml with the key token
  2. Environment variable: HETZNER_TOKEN
  3. Command line flag: -t or --token

Commands

  • pull: Download DNS records from Hetzner
  • validate: Verify DNS configurations
  • push: Upload DNS record changes to Hetzner
  • -h or --help: Display help information
  • -v or --version: Show version number

Options

  • -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]

Requirements

License

tbd.

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published