Dynv6 REST API for libdns
This package implements the libdns interfaces for Dynv6 REST API, allowing you to manage DNS records.
Install using go get (Go >= 1.20)
go get -u github.com/ZxwyProject/libdynv6Token is required for authorization.
You can generate one at: https://dynv6.com/keys
import "github.com/ZxwyProject/libdynv6"
p := libdynv6.Provider{
Token: `<your http token>`,
}
zs, err := p.ListZones(context.Background())
if err != nil {
log.Fatalln(err)
}
for i, z := range zs {
log.Printf("[%d] %s\n", i, z.Name)
}Debug mode is enabled by default. You can disable it through the following actions:
import "github.com/ZxwyProject/dynv6"
dynv6.Debug = false