https://github.com/libdns/hexonet
dns.providers.hexonet
https://github.com/libdns/hexonet
Last synced: 4 months ago
JSON representation
dns.providers.hexonet
- Host: GitHub
- URL: https://github.com/libdns/hexonet
- Owner: libdns
- License: mit
- Created: 2023-09-22T05:17:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-23T04:02:20.000Z (over 2 years ago)
- Last Synced: 2024-04-16T00:13:11.276Z (about 2 years ago)
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Hexonet provider for [`libdns`](https://github.com/libdns/libdns)
=======================
This package implements the [libdns interfaces](https://github.com/libdns/libdns) for
[Hexonet](https://hexonet.net/), 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)
}
}