Cloudflare DNS
Cloudflare supports CNAME flattening at the bare domain, so a bare domain works without moving DNS.
Bare domain (example.com) | Works. Cloudflare flattens the CNAME at the top of the zone automatically. |
| Proxy | Must be off (DNS only, grey cloud) for every LeafCloud record. |
| Workaround | Not needed. If the domain is somewhere else, move its name servers to Cloudflare. |
Add the records
Section titled “Add the records”- Open the zone for the domain in the Cloudflare dashboard, then open DNS and Records.
- For each record that
leaf domains showprints, choose Add record. Set the type (TXT or CNAME), the name, and the target or content. - Turn the proxy off for each record. The proxy status must read DNS only. A proxied record shows the orange cloud, and it breaks the certificate. This includes the wildcard record (
*) of a project-addresses domain, which must also be DNS only. - Save each record.
Cloudflare shows the zone name next to the field. Enter the host part (shop, or _acme-challenge.shop), and Cloudflare adds the domain.
The bare domain
Section titled “The bare domain”Add the CNAME for the bare domain with the name @, the same target as the subdomain. Cloudflare flattens it, so it works at the top of the zone.
For a www address, add its CNAME too. Whether www redirects to the bare domain, or the other way round, is set in LeafCloud, not at Cloudflare. See A domain for one project.
Check that the proxy is off
Section titled “Check that the proxy is off”Each record in the list shows whether it is proxied. For every LeafCloud record, the cloud must be grey. If you switch a record on later, the domain can show Certificate failed or visitors can see error 525. See Troubleshooting.
Not confirmed for this guide
Section titled “Not confirmed for this guide”- The exact labels in the Cloudflare dashboard. The steps above use generic names.
- Whether flattening is still automatic for every zone type. Check Cloudflare’s DNS documentation before you rely on it.