https://github.com/kmpm/libdns-glesys
Libdns provider for glesys
https://github.com/kmpm/libdns-glesys
caddy dns glesys libdns
Last synced: about 1 year ago
JSON representation
Libdns provider for glesys
- Host: GitHub
- URL: https://github.com/kmpm/libdns-glesys
- Owner: kmpm
- License: mit
- Created: 2022-03-25T11:01:54.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-25T14:35:06.000Z (about 4 years ago)
- Last Synced: 2025-01-29T09:30:17.443Z (over 1 year ago)
- Topics: caddy, dns, glesys, libdns
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Glesys for [`libdns`](https://github.com/libdns/libdns)
==============================================================
This package implements the [libdns interfaces](https://github.com/libdns/libdns) for [Glesys](https://glesys.se), allowing you to manage DNS records.
It utilizes [glesys-go](https://github.com/glesys/glesys-go) for API communication.
## Usage
```golang
include (
glesys "github.com/libdns/glesys"
)
p := &glesys.Provider{
Project: "your project/username usually clXXXXXX",
ApiKey: "api-key",
}
zone := "example.org"
records, err := p.GetRecords(ctx, zone)
```
For more examples check the `_examples` folder in the source.
## Noteworthy
To do everything this library can do the Glesys API user needs permissions to the following...
- Domain.addrecord
- Domain.deleterecord
- Domain.listrecords
- Domain.updaterecord