Create DNS Record
create_dns_recordAdd a new DNS record to a Cloudflare zone, supporting all record types (A, AAAA, CNAME, MX, TXT, SRV, etc.) with options for TTL, proxying, and metadata.
Instructions
Create a new DNS record in a zone. Supports all record types (A, AAAA, CNAME, MX, TXT, SRV, etc.). For proxied records, TTL is automatically set by Cloudflare.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | TTL in seconds. Use 1 for automatic (default). Range: 60-86400 for non-proxied. | |
| data | No | Additional data for SRV, CAA, SSHFP, and other complex record types | |
| name | Yes | DNS record name (e.g., 'example.com', 'sub.example.com', or '@' for root) | |
| tags | No | Tags in format 'key:value' | |
| type | Yes | DNS record type | |
| comment | No | Comment for the DNS record | |
| content | Yes | Record value (e.g., IP for A records, target for CNAME) | |
| proxied | No | Whether to proxy through Cloudflare (orange cloud). Default: false. | |
| zone_id | Yes | The zone ID | |
| priority | No | Priority for MX and SRV records |