Marketplace

Cloudflare DNS

Other

Cloudflare DNS records driver.

togo-framework
bash
togo install togo-framework/dns-cloudflare

Install

bash
togo install togo-framework/dns-cloudflare

Cloudflare authoritative-DNS driver for togo's dns subsystem. Manages records over the Cloudflare v4 API (token auth).

Config

Env
Meaning
DNS_DRIVERset to cloudflare
CLOUDFLARE_API_TOKENAPI token with DNS:Edit on the zone (required)
CLOUDFLARE_ZONE_IDdefault zone id (optional — can pass per call)
Rows per page
1–3 of 3
Page 1 of 1
go
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.


<div align="center"> <h3>Premium sponsors</h3> <p><a href="https://id8media.com"><strong>ID8 Media</strong></a> &nbsp;·&nbsp; <a href="https://one-studio.co"><strong>One Studio</strong></a></p> <p><sub>Support togo — <a href="https://github.com/sponsors/fadymondy">become a sponsor</a>.</sub></p> </div>