Add DNS record
cf_dns_addCreate a DNS record (A, AAAA, CNAME, TXT, MX) in a Cloudflare zone by specifying domain, type, name, and content. Optionally set proxy, TTL, and priority.
Instructions
Create a DNS record in a zone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Zone domain | |
| type | Yes | Record type, e.g. A, AAAA, CNAME, TXT, MX | |
| name | Yes | Record name, e.g. www or @ for root | |
| content | Yes | Record value, e.g. an IP or target host | |
| proxied | No | Proxy through Cloudflare (orange cloud) | |
| ttl | No | TTL in seconds (1 = automatic) | |
| priority | No | Priority (MX/SRV only) | |
| account | No | Cloudflare account key from CF_ACCOUNTS (defaults to the first) |