DNS Record → Create
AI-generatedSummary
Create a new DNS record in a specified Cloudflare zone by providing the zone ID and the DNS record details such as type, name, content, and TTL.
Inputs
- Zone ID (required) — The ID of the Cloudflare zone where the DNS record will be created. Select from the list or specify via expression.
- Record Type (required) — The DNS record type to create (e.g., A, AAAA, CNAME, TXT, MX, NS, SRV).
- Name (required) — The name of the DNS record, such as a subdomain or domain name.
- Content (required) — The value or target content of the DNS record, such as an IP address or hostname.
- TTL (required) — Time to live for the DNS record in seconds; set to 1 for automatic TTL.
Output shape
a single JSON object representing the created DNS record
The operation returns the created DNS record as a JSON object in the output. Errors result in failure unless 'Continue On Fail' is enabled.
Examples
Example 1: Create an A record
Zone ID: example zone, Type: A, Name: www, Content: 192.0.2.1, TTL: 3600
Example 2: Create a TXT record with automatic TTL
Zone ID: example zone, Type: TXT, Name: _acme-challenge, Content: "validation-text", TTL: 1