Custom domain guide
How to connect a Cloudflare domain to Netlify
The exact records to add at Cloudflare, written the way its form asks for them, for both www and the bare domain.
Checked 16 October 2026
In short
The records you'll add
- Type
- CNAME
- Name
- Target
- Type
- CNAME
- Name
- Target
Replace the capitals with your own value from the host's dashboard.
| Type | Name | Target |
|---|---|---|
| CNAME | ||
| CNAME | Replace the capitals with your own value from the host's dashboard. |
Step by step
Set it up
- 1
Add the domain in Netlify first
In Netlify, go to Site→Domain management→Add a domain and enter your domain (for example www.example.com). Adding either the bare domain or www adds both, so set up records for both. Netlify recommends www as the main address with outside DNS.
Check the exact values under Domain management, Pending DNS verification.
Custom domains are included on the free plan.
- 2
Open the DNS records at Cloudflare
Sign in, then go to your domain→DNS→Records
The domain has to be on Cloudflare's nameservers.
- 3
Clear what's in the way
Look for existing A, AAAA or CNAME records on the same name: Cloudflare won't let a CNAME sit next to them.
- 4
Add the record for www
Click Add record and add:
- Type
- CNAME
- Name
- Target
Replace the capitals with your own value from the host's dashboard.
Type Name Target CNAME Replace the capitals with your own value from the host's dashboard.
- 5
Point the bare domain
Cloudflare flattens a CNAME on the bare domain, so one record pointing at Netlify is enough.
- Type
- CNAME
- Name
- Target
Type Name Target CNAME - 6
Wait, then check
Changes at Cloudflare take effect within minutes. Once Netlify sees the records, it issues the certificate for https by itself. Use the check below to see what the world sees.
Check your domain
Once the records are in, see whether the world can see them pointing at Netlify.
Changes can take from a few minutes to a day to show up everywhere.
Good to know
Common snags
- A CNAME at @ is allowed: Cloudflare flattens it automatically, so there's no ALIAS record type.
- Set Proxy status to DNS only (grey cloud) for another host's records, unless that host's guide says otherwise. Proxying can stop the host from issuing its certificate.
Still not working?
Questions
Before you start
Should I use www or the bare domain with Netlify?
Adding either the bare domain or www adds both, so set up records for both. Netlify recommends www as the main address with outside DNS. www always works with a single CNAME; the bare domain depends on what Cloudflare offers, covered in step 5.
Why does my site show a certificate error?
The certificate is issued once Netlify sees your records, which can take a while after DNS changes. If it stays, check for old records on the same name (parking pages, AAAA records) and, at Cloudflare, that the record is set to DNS only.
Will this affect my email?
No. Email uses MX records, which these steps don't touch. Only change the records for @ and www.
Rather skip git and build settings?
99helpers puts a file, a folder or a built site online in seconds, then a single CNAME connects your domain, with passwords, analytics and AI editing built in.
Connect a Cloudflare domain to 99helpersOr skip the setup
Drop it in. It's online in seconds.
A file, a folder or a whole site: 99helpers puts it online at its own address, with no git, no build settings and no DNS to start with. Add your own domain whenever you're ready.