Skip to content

This package implements the libdns interfaces for the Hexonet Domains API

License

Notifications You must be signed in to change notification settings

tojjx/libdns-hexonet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

This package implements the libdns interfaces for the Hexonet Domains API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages