Skip to content

ZxwyProject/libdynv6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Dynv6 REST API for libdns

Go Reference

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/libdynv6

Token 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

About

๐ŸŒ Dynv6 provider implementation for libdns

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages