Kaptain.
Telegram /
LinkedIn /
Email /
GIT /
RSS /
GPG /
Заказ печатных плат

№ 10996 В разделе
Programming
от May 6th, 2020,
В подшивках: Go, Hetzner
I made this library to interact with Hetzner DNS API in most easy way. Hopefully in future it will be used for Hetzner external-dns provider. Check out example directory and API_help.md.
Get your own token on Hetzner DNS and place it to token variable and run code
token := "jcB2UywP9XtZGhvhSHpH5m"
zone := "vhSHpH5mjcB2UywP9XtZGh"
log.Println("Create new instance")
hdns := hclouddns.New(token)
log.Println("Get zone", zone)
allRecords, err := hdns.GetRecords(zone)
if err != nil {
log.Fatalln(err)
}
log.Println(allRecords.Records)
log.Println(allRecords.Error)
Fortune cookie: God is not dead -- he's been busted.
Leave a Reply