Create Dns Record
create_dns_recordCreate a new DNS record in a Cloudflare zone by specifying type, name, content, TTL, proxy status, and optional comment.
Instructions
Create a new DNS record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | TTL in seconds. 1 = auto (only valid when proxied=True) | |
| name | Yes | Record name (e.g. 'api' or 'api.example.com') | |
| comment | No | Optional note about this record | |
| content | Yes | Record value (IP address, hostname, text, etc.) | |
| proxied | No | Whether to proxy through Cloudflare (orange cloud). Only valid for A, AAAA, CNAME. | |
| zone_id | Yes | Cloudflare zone ID | |
| priority | No | MX/SRV priority (required for MX records) | |
| record_type | Yes | A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, etc. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||