Create new records

This commit is contained in:
Magnus Åhall 2026-02-25 14:48:11 +01:00
parent 7d7c0c9570
commit 3763367510
6 changed files with 117 additions and 19 deletions

10
dns.go
View file

@ -21,11 +21,11 @@ type DNSRecord struct {
}
type DNSEntry struct {
ID string `json:".id"`
Disabled string `json:"disabled"`
Name string `json:"name"`
TTL string `json:"ttl"`
Type string `json:"type"`
ID string `json:".id,omitempty"`
Disabled string `json:"disabled,omitempty"`
Name string `json:"name,omitempty"`
TTL string `json:"ttl,omitempty"`
Type string `json:"type,omitempty"`
Address string `json:"address,omitempty"`
CNAME string `json:"cname,omitempty"`