Create Cloudflare Record
create_cloudflare_recordCreate DNS records in a domain's Cloudflare zone to control live resolution for domains moved to Cloudflare. Supports A, AAAA, CNAME, TXT, MX, and more.
Instructions
Create a DNS record in a domain's Cloudflare zone. IMPORTANT: for a domain that has been moved to Cloudflare this is the tool that changes what actually resolves — create_dns_record writes Porkbun's zone, which no longer answers for it. name accepts "@" for the apex or a bare label like "www". ttl: 1 means Cloudflare-automatic. MX requires priority. proxied (orange cloud) applies to A/AAAA/CNAME only. Record types Cloudflare models as structured objects (SRV, CAA, …) need a data object instead of content. Supports dry_run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | 1 = automatic (default), otherwise 60-86400. | |
| data | No | Structured value for SRV/CAA/etc, shaped as Cloudflare documents it. | |
| name | No | "@" for the apex, a bare label like "www", or a full hostname. Defaults to the apex. | |
| type | Yes | A, AAAA, CNAME, TXT, MX, NS, PTR or SPF for a plain value; structured types need `data`. | |
| domain | Yes | Domain whose Cloudflare zone to write to. | |
| comment | No | Note stored on the record. | |
| content | No | The value the record points at. Required unless `data` is given. | |
| dry_run | No | ||
| proxied | No | Route through Cloudflare's proxy. A/AAAA/CNAME only. | |
| priority | No | Required for MX; lower is preferred. |