Skip to content

Setup

For your zone apex

CNAME flattening occurs by default for all plans when your domain uses a CNAME record for its zone apex (example.com, meaning the record Name is set to @).

For all CNAME records

Accounts on paid plans can choose to flatten all CNAME records on their domain. This option is useful for DNS-only (unproxied) CNAME records since proxied records are flattened by default (as they return Cloudflare IPv4 and IPv6 addresses).

  1. Log in to the Cloudflare dashboard and select your account and domain.
  2. Go to DNS > Settings.
  3. For CNAME Flattening, select Flatten all CNAMEs.

Per record

Accounts on paid plans also have the option to flatten specific CNAME records. This operation is currently only supported via API.

With the available API endpoints, specify the following for each CNAME record in the request body:

"settings": {
"flatten_cname": true
}