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

For zones on paid plans, you can choose to flatten all CNAME records. This option is useful for DNS-only (unproxied) CNAME records. Proxied records are flattened by default as they return Cloudflare anycast IPs.

  1. Log in to the Cloudflare dashboard ↗ and select your account and domain.
  2. Go to DNS > Settings.
  3. Turn on the option CNAME flattening for all CNAME records.

Per record

Paid zones also have the option of flattening specific CNAME records.

  1. Log in to the Cloudflare dashboard ↗ and select your account and domain.
  2. In DNS > Settings, make sure that CNAME flattening for all CNAME records is turned off.
  3. Go to DNS > Records and find the CNAME record you would like to flatten.
  4. Select Edit and turn on the Flatten option.
  5. Select Save to confirm.