Cloudflare DNS: An A, AAAA, or CNAME record with that host already exists (code 81053)

Cloudflare won’t create the record because another record of a conflicting type already uses that name.

Seen on: Cloudflare

Meaning

A CNAME can’t coexist with other records of the same name, and A/AAAA can’t coexist with a CNAME. Terraform/API scripts creating records that were added manually hit 81053/81057.

Common causes

  • CNAME and A/AAAA for the same hostname
  • Record created manually before Terraform/API
  • Duplicate identical record

⚡ Quick fix

  1. Delete or edit the existing record first
  2. Import existing records into Terraform
  3. Use a different hostname

Detailed fix by platform

Shell

  1. curl -s "https://api.cloudflare.com/client/v4/zones/$ZONE/dns_records?name=app.example.com" -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" | jq '.result[] | {type,content,id}'

How to diagnose

  1. Existing — Records with that name
  2. Source — Created manually or by another tool?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.