Skip to content

nl2go/hetzner-dns-go

Repository files navigation

hetzner-dns-go: A Go library for the Hetzner DNS API

Build Coverage

Package hetzner-dns-go is a library for the Hetzner DNS API.

The library’s documentation is available at GoDoc, the public API documentation is available at dns.hetzner.com.

Example

package main

import (
    "fmt"
    "log"

    client "github.com/nl2go/hetzner-dns-go"
)

func main() {
    hDNSClient := client.NewAuthApiTokenClient("yourAuthAPIToken")

    zones, err := hDNSClient.ZonesGet()
    if err != nil {
        log.Fatalf("error while retrieving zones list: %s\n", err)
    }

    fmt.Println(zones)
}

Releases

No releases published

Packages

No packages published