Skip to content

libdns/tecnocratica

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tecnocratica for libdns

Go Reference

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:

Configuration

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:

Example

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)
}

About

Tecnocrática Provider for using dns in its services

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages