Guide · Cloudflare

How to add a CNAME record at Cloudflare

The steps to point a subdomain such as shop.yourdomain.com to a platform with a CNAME record at Cloudflare, without touching your website or email records.

Reviewed on 18 November 2026

Before you start

You need access to the panel where the domain's DNS is hosted, and the name and target the platform asked for. Make sure the DNS really is at Cloudflare: the domain's nameservers end in ns.cloudflare.com. If they end in something else, the zone is edited in another panel; the checker below shows the nameservers.

Step by step

  1. Sign in to the Cloudflare dashboard and pick the domain.
  2. Open DNS → Records and click Add record.
  3. Choose type CNAME and fill in the name and target you were given.
  4. Set the proxy status to DNS only (grey cloud), unless the platform says otherwise. With the proxy on, the CNAME does not show in DNS and cannot be checked.
  5. Save only that record and keep every other one, especially those of your website and email.

What to type in each field

FieldWhat to type
TypeCNAME
Name / HostOnly the part before your domain: shop for shop.yourdomain.com. Do not repeat the domain.
Value / TargetThe address the platform gave you, for example customers.yourapp.com. Some panels want a final dot, others add it themselves.
TTLThe panel default is fine (for example 3600 seconds, or 1 hour).

Good to know at Cloudflare

  • Cloudflare usually publishes within a few minutes. Its nameservers end in ns.cloudflare.com.
  • When the checker finds addresses (A/AAAA) where you expected a CNAME on a Cloudflare domain, the proxy is almost always on.

Check that it worked

Type the full name (for example the subdomain plus your domain) and, if you want, the target you expect. The checker asks the zone's own nameservers, not a cache, so a record saved a minute ago already shows.

Or open the full CNAME checker.

Common mistakes

  • Domain repeated in the name. Typing shop.yourdomain.com in the name field creates shop.yourdomain.com.yourdomain.com.
  • CNAME at the root of the domain. The bare domain cannot hold a CNAME; use the subdomain the platform asked for.
  • Another record at the same name. A CNAME cannot share its name with an A, AAAA, TXT or another CNAME. Find out what the old record does before removing it.
  • Editing the wrong panel. The company where you bought the domain is not always the one that hosts its DNS. The nameservers decide.
  • After saving, wait for propagation and confirm the CNAME on the authoritative nameservers (the checker on this page does that).

Other guides