capabilities.work

Rotate DNS Record

A 3-step recipe with Cloudflare. We can help you get access.

Recipe · 3 steps

Rotate DNS Record

Create, update, and delete a DNS record in a single lifecycle.

  1. Create the DNS record with its initial content.
  2. Patch the record with the replacement content value.
  3. Delete the record now that the rotation is complete.
What you'll need to have ready
  • zoneId: The unique identifier of the zone.
  • type: The DNS record type (e.g. A, AAAA, CNAME, TXT).
  • name: The DNS record name (e.g. www.example.com).
  • content: The initial DNS record content value.
  • newContent: The replacement DNS record content value applied during the update.
For your developer

Arazzo workflow cloudflare:rotate-dns-record, 3 operations: createDnsRecord → updateDnsRecord → deleteDnsRecord. Specs on APIs.io.