togo install togo-framework/dns-cloudflareCloudflare authoritative-DNS driver for togo's dns
subsystem. Manages records over the Cloudflare v4 API (token auth).
| Env | Meaning |
|---|---|
DNS_DRIVER |
set to cloudflare |
CLOUDFLARE_API_TOKEN |
API token with DNS:Edit on the zone (required) |
CLOUDFLARE_ZONE_ID |
default zone id (optional — can pass per call) |
svc, _ := dns.FromKernel(k)
svc.UpsertRecord(ctx, "", dns.Record{Type: "A", Name: "app", Content: "203.0.113.10", Proxied: true})UpsertRecord is idempotent: it updates an existing record of the same
type+name, otherwise creates one. Proxy hosts / gateway routes return
dns.ErrUnsupported.