cloudflare-dns

command
v1.5.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Cloudflare DNS plugin

Lists zones and manages DNS records in Cloudflare for the control plane, on the public dns_provider plugin contract.

Kind dns_provider, ability read, outbound host api.cloudflare.com.

Config

None. The Cloudflare API token (Zone:DNS:Edit) is the one already stored under Settings for Cloudflare DNS. The control plane hands it to the plugin on every call and the plugin never stores or logs it.

Use

scripts/plugins-build.sh all cloudflare-dns
levelrail-cli plugins install --manifest dist/plugins/cloudflare-dns/plugin.yaml --signature dist/plugins/cloudflare-dns/plugin.sig --approve read
levelrail-cli plugins enable cloudflare-dns
levelrail-cli plugins test cloudflare-dns
levelrail-cli plugins dns-provider cloudflare-dns

plugins dns-provider --off returns DNS writes to the built-in client.

Behaviour

  • Upsert replaces the record with the same name and type, or creates it.
  • Delete removes only a record whose name, type and value all match.
  • Verify reports whether Cloudflare now serves the exact record.
  • 401 and 403 are permanent, 429 and 5xx are reported retryable, and the token is redacted from every message.

Tests: go test ./plugins/cloudflare-dns.

Documentation

Overview

Command cloudflare-dns manages DNS records in Cloudflare for the control plane.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL