Do this first: let your AI run a diagnostic
Tell your AI assistant "Run a diagnostic on my domain," and it calls diagnose_my_domain.This tool lines up what we've configured against what's actually resolving on the public internet and tells you exactly which link in the chain is broken,with a "why" and a "how to fix it" for each one. No need to go digging through your DNS provider's dashboard yourself.
The three most common causes
1. The same domain was added to two different Cloudflare accounts (the sneakiest one)
Cloudflare allows the same domain to be added under multiple accounts, but only the one the domain registrar's NS actually points to takes effect --the others end up in a moved state.
What happens when you write a DNS record into the moved copy:
- The record saves (yes)
- It shows up in the Cloudflare dashboard (yes)
- It shows up through the API (yes)
- But nothing on the outside ever reads it (no) -- because resolution authority belongs to the other account
The result: every step looks like it succeeded, but the certificate never issues.
How to check: the diagnostic tool lists "the NS this account was assigned" side by side with "the NS the domain is actually using" -- a mismatch means this is the problem.
How to fix it (pick one):
- Switch to the Token of the account that's actually resolving this domain, or
- Go to your domain registrar and change the NS to the set assigned to the account you're holding
Afterward, delete the zone in the inactive account so you don't grab the wrong one again later.
2. If your domain is also on Cloudflare -- that record must be orange-clouded, not grey
This one's the most counterintuitive, and trips up the most people.
Most tutorials say "point to your host with grey cloud (DNS only)," and that's correct -- but only if your domain isn't on Cloudflare.
If your domain's DNS is also hosted on Cloudflare, it's the opposite:our servers themselves sit behind Cloudflare, and if you point to us with a grey cloud,Cloudflare notices the domain resolves to one of its own IPs and rejects it outright:
Error 1000 -- DNS points to prohibited IP
This hits both the root domain and www, not just the root.
The right way: set that CNAME's proxy status to "Proxied" (orange cloud).This is called Orange-to-Orange (O2O), and it's supported on Cloudflare's free tier too.
If you've given us your Cloudflare Token, we make this call automatically --when you connect the domain, we first check whether its NS is on Cloudflare, then automatically choose grey or orange cloud, so you don't need to think about it.
3. The root domain is missing its ownership-verification TXT record
Connecting a bare root domain like yourcompany.com (no www) takes more than just adding a CNAME.
Why: Cloudflare "flattens" a root domain's CNAME -- what's returned externally is an A record, not a CNAME --so the certificate verifier can't see the CNAME, and relies on a TXT record instead to confirm the domain is yours.
The error looks like this: custom hostname does not CNAME to this zone.
How to fix it: add this in addition to the CNAME:
Type: TXT
Name: _cf-custom-hostname
Value: (the string returned when you connected the domain -- also shown by the diagnostic tool)
Both records are required. If your DNS is hosted on Cloudflare and you've given us a Token, we write both of these automatically.
4. Proxy is set to orange cloud (only applies if the domain is NOT on Cloudflare)
If your domain isn't on Cloudflare, that record has to be "DNS only" (grey cloud) -- turning on orange cloud will prevent the certificate from issuing.(If the domain is on Cloudflare, it's the opposite -- see 2 above.)
"This will overwrite existing records" warning when connecting a domain
This is a safety measure. If your domain already has records (usually because another site is running on it),we won't change them automatically -- because doing so would take that existing site offline instantly.
The current value in the response is the original record as it was -- save it first, and once you've confirmed the original site can be taken down,have the AI run it again with allowOverwrite:true. If you ever need to roll back, just put the current values back.
Related tools
diagnose_my_domain (diagnostic -- use this first), bind_my_domain (connect),get_domain_status (check certificate status), list_domain_routes (see what each domain opens to)