create_dns_record
Create a DNS record in a Cloudflare zone for types like A, AAAA, CNAME, MX, TXT, NS, CAA, and SRV, with configurable TTL, proxying, and priority.
Instructions
Create a DNS record in a zone.
type is one of A, AAAA, CNAME, MX, TXT, NS, CAA, SRV, etc. name is the record name (e.g. 'www.example.com' or '@' for the zone apex). content is the record's value (an IP for A/AAAA, a hostname for CNAME/MX, etc.). ttl is in seconds; 1 means "automatic". proxied routes traffic through Cloudflare's proxy (orange cloud) — only valid for A/AAAA/CNAME records. priority is required for MX and some SRV/URI records.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | ||
| name | Yes | ||
| type | Yes | ||
| comment | No | ||
| content | Yes | ||
| proxied | No | ||
| zone_id | Yes | ||
| priority | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||