Skip to content

libdns/hexonet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexonet provider for libdns

This package implements the libdns interfaces for Hexonet, allowing you to manage DNS records.

To configure this, simply specify the username and the password.

package main

import (
    "context"

    "github.com/libdns/libdns"
    "github.com/libdns/hexonet"
)

func main() {
    p := &hexonet.Provider{
        Username: "abcde12312312", // required
        Password:  "@#$#12312312",        // required
    }

    _, err := p.AppendRecords(context.Background(), "example.org.", []libdns.Record{
        {
            Name:  "_acme_whatever",
            Type:  "TXT",
            Value: "123456",
        },
    })
    if err != nil {
        panic(err)
    }

}

About

dns.providers.hexonet

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages