Tecnocratica for libdns
This package implements the libdns interfaces for Tecnocratica, Neodigit and Virtualname, allowing you to manage DNS records.
This package uses the API at these places:
To configure, you need to get an API Token from your control panel. Also depending on the control panel you're using, you may need to change the url
Neodigit:
Virtualname:
package main
import (
"context"
"fmt"
"github.com/libdns/tecnocratica"
)
func main() {
provider := &tecnocratica.Provider{
APIToken: "<API Token>",
APIURL: "<The url of the control panel API>",
}
zone := "example.com."
records, err := provider.GetRecords(context.TODO(), zone)
if err != nil {
fmt.Printf("Error: %s", err.Error())
return
}
fmt.Println(records)
}