njalla for libdns
This package implements the libdns interfaces for njalla, allowing you to manage DNS records.
package main
import (
"context"
"fmt"
p "github.com/libdns/njalla"
)
func main() {
p := Provider{
APIToken: "TOKEN",
}
records, err := p.GetRecords(context.Background(), "domain.tld")
if err != nil {
fmt.Printf("Error: %s", err.Error())
return
}
fmt.Println(records)
}