No description
- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| go.mod | ||
| go.sum | ||
| LICENSE | ||
| provider.go | ||
| README.md | ||
LWS for libdns
This package implements the libdns interfaces for LWS (Ligne Web Services), allowing you to manage DNS records.
Configuration
import "git.kytech.fr/Kylian/libdns-lws"
provider := &lws.Provider{
AuthLogin: "YOUR_LWS_ID", // Your LWS account ID
AuthPass: "your-api-key", // Your LWS API key
// BaseURL: "https://api.lws.net/v1", // Optional, defaults to production
}
Authentication
You need your LWS account ID and an API key. You can find these in your LWS Panel.
The API key must be authorized for the source IP address making requests. Configure this in your LWS Panel under API settings.
Supported Record Types
A, AAAA, CNAME, ANAME, MX, NS, TXT, SRV, SPF, CAA
Allowed TTL Values
86400, 43200, 21600, 7200, 3600, 1800, 900 (seconds)
API Endpoints Used
| Method | Endpoint | Description |
|---|---|---|
| GET | /domain/{domain}/zdns | List DNS records |
| POST | /domain/{domain}/zdns | Add a DNS record |
| PUT | /domain/{domain}/zdns | Update a DNS record |
| DELETE | /domain/{domain}/zdns | Delete a DNS record |