When a subdomain stops resolving after a zone moves to Cloudflare, the record almost always does not exist in the Cloudflare zone — the onboarding scan guesses at common hostnames and misses anything unusual, including the wildcard that used to catch this name at the old host. The rest of the cases are a typo in the record name, a cached NXDOMAIN from testing too early, or a zone that is not actually active yet. Query Cloudflare’s assigned nameservers directly; if they cannot answer, no resolver on earth can.
What’s happening
Cloudflare’s setup wizard does not — cannot — transfer your zone. When you add a domain, it runs a quick scan that queries a list of common names (www, mail, ftp, blog, and so on) against public DNS and imports whatever answers. Anything the list does not contain never gets asked about: internal tool names, client portals, api-v2, region prefixes, SRV and TXT records at odd names, and — critically — the effect of a wildcard. If *.example.com existed at the old host, every ad-hoc subdomain used to resolve without its own record; the scan cannot see a wildcard, so none of those names survive the move.
There is a second layer: caching. If someone queried the missing name after cutover, resolvers cached the NXDOMAIN. Negative answers are cached for the duration set by the zone’s SOA record, so even after you add the record, that resolver keeps saying “no such name” until the negative TTL runs out. This is why a record you just added seems broken from one network and fine from another.
Finally, resolution and reachability are different failures. A record that exists but points at a dead IP, or a proxied multi-level name like a.b.example.com whose TLS is not covered by the Universal certificate (it covers example.com and one level of *.example.com only), fails in the browser while resolving perfectly. Keep the two categories separate while debugging.
What to check first
- Does the record exist in DNS → Records? Search the exact name; do not trust memory.
- Is the zone Active, or still pending delegation? A pending zone means the old nameservers are still answering — and they may genuinely lack this record now.
- Did the old zone have a wildcard record that silently served this name?
- Is the failure NXDOMAIN (no record) or a connection/TLS error (record fine, target broken)?
- Was the name recently queried while missing — meaning a negative cache is now in play?
How to verify
# Ask Cloudflare's assigned nameservers directly (use YOUR pair)
dig A app.example.com @ada.ns.cloudflare.com
# Compare with a public resolver
dig A app.example.com @1.1.1.1
# NXDOMAIN vs NOERROR-with-no-answer tells you different things
dig app.example.com @1.1.1.1 | grep -E "status|ANSWER"
# How long will a cached negative answer live? Check the SOA minimum
dig +short SOA example.com @ada.ns.cloudflare.com
# If DNS answers but the site fails, test the origin directly
curl -sv --resolve app.example.com:443:203.0.113.10 https://app.example.com/ -o /dev/null 2>&1 | head -20
The first command is the decisive one. Cloudflare’s authoritative servers answer for the zone even before activation, so if they return NXDOMAIN, the record is missing from the zone, full stop. If they answer correctly but 1.1.1.1 does not, you are waiting out caches or the delegation has not landed yet.
The fix
- Add the missing record. In DNS → Records, create the A, AAAA, or CNAME for the subdomain with the correct target and a deliberate proxy status. In the Name field,
appis enough — the UI appends the domain. If you pastedapp.example.comfrom a zone file into a form that expected the short name elsewhere, check for a doubledapp.example.com.example.comentry while you are in there. - Recreate the wildcard if the old zone relied on one. A
*record for A/AAAA/CNAME restores the catch-all behaviour for every name that has no explicit record. Decide its proxy status consciously — a proxied wildcard sends every stray hostname to your origin. - Wait out (or route around) the negative cache. After adding the record, resolvers that cached NXDOMAIN keep it until the SOA-driven negative TTL expires. You cannot flush the world’s caches; you can verify correctness against the authoritative servers and against a resolver that has not seen the name yet.
- Confirm you are editing the right zone. Agencies and rebuilds leave domains added in multiple Cloudflare accounts. The zone whose assigned nameservers match the registrar delegation is the live one; records added anywhere else do nothing. If the zone is still pending, fix delegation first — Cloudflare zone stuck on pending nameserver update walks that.
- Separate DNS from TLS for deep subdomains. If
a.b.example.comresolves but browsers show a certificate error through the proxy, the Universal certificate does not cover a second level — Cloudflare’s SSL docs spell out the coverage rules. Options: restructure to one level (a-b.example.com), buy Advanced Certificate Manager to issue a cert covering that depth, or leave the record DNS only with a valid certificate on the origin.
When this fix is wrong
If no hostname in the zone resolves — apex and www included — this is not a missing record; it is delegation, activation, or an upstream DNS problem, and adding records will not move anything. Likewise, if the name resolves fine from every network but the application errors, you are past DNS: chase the origin, the SSL mode, or the app itself. A proper record-by-record migration checklist is in importing a zone into Cloudflare without losing records.
Common mistakes
- Trusting the onboarding scan to have found everything, and discovering missing records one support ticket at a time.
- Testing the name before creating the record, then treating the negatively-cached NXDOMAIN as proof the fix “didn’t work”.
- Adding the record in a duplicate zone in the wrong Cloudflare account.
- Blaming propagation for what is actually a record that exists nowhere.
Prevention
- Migrate zones by exporting and importing a zone file, never by relying on the quick scan alone.
- Diff the old and new zones by querying both nameservers for every name before cutover.
- Inventory wildcard usage at the old host explicitly — it never shows up in an export of used names.
- Keep a list of every hostname the business depends on (including the ones only one department knows about) and test each after any DNS move.
- Add records before announcing new subdomains, so negative caching never gets a head start.
One missing record is a nuisance; twelve missing records across client sites is a very bad Monday. Moving a production zone onto Cloudflare without dropping mail or exposing the origin is exactly the kind of work Stack Harbor handles under Managed Cloud Ops — book an infrastructure review if you want it done with a rollback plan.