No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-19 14:09:47 +00:00
go.mod Initial commit: libdns-lws provider for LWS 2026-06-19 12:33:36 +00:00
go.sum Initial commit: libdns-lws provider for LWS 2026-06-19 12:33:36 +00:00
LICENSE Initial commit: libdns-lws provider for LWS 2026-06-19 12:33:36 +00:00
provider.go Default TTL 60 when 0 (LWS rejects TTL=0) 2026-06-19 14:09:47 +00:00
README.md Initial commit: libdns-lws provider for LWS 2026-06-19 12:33:36 +00:00

LWS for libdns

Go Reference

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