Cloudflare+ icon

Cloudflare+

Interact with Cloudflare REST API

Actions9

DNS Record → Update

AI-generated

Summary

Update an existing DNS record in a specified Cloudflare zone by modifying its type, name, content, and TTL settings.

Inputs

  • Zone ID (required) — Select the Cloudflare zone containing the DNS record to update.
  • DNS Record ID (required) — Select the DNS record to update within the specified zone.
  • Record Type (required) — Specify the DNS record type (e.g., A, AAAA, CNAME, TXT, MX, NS, SRV).
  • Name (required) — Set the DNS record's name.
  • Content (required) — Specify the content for the DNS record, such as the IP address or target domain.
  • TTL (required) — Set the TTL (time to live) in seconds. Use 1 for Auto TTL.

Output shape

a single JSON object representing the updated DNS record details as returned by Cloudflare's API

Returns the updated DNS record object. Errors throw NodeOperationError, and can be optionally caught with 'Continue On Fail'.

Examples

Example 1: Update the content of an A record for a domain to a new IP address with Auto TTL.

Zone ID and DNS Record ID selected, type set to 'A', name set to the DNS name, content set to the new IP, TTL set to 1.

Discussion