Subdomains show Cloudflare error 1001

Hi, I've setup our SaaS company's website behind cloudflare and the (@) and (www) DNS records are successfully proxied. We host a bunch of customer websites under custom domains (example.com OR sub.example.com) as well as on our own subdomains (X.niceboard.co), which use our wildcard DNS record (*). Currently, our wildcard DNS record is DNS only but when I set it to be "proxied", it seemed to work initially, then the sites displayed a Cloudflare error 1001. I don't understand why this is happening given that the custom domains point directly to our server IP, and therefore shouldn't even be going through Cloudflare? Any ideas? Our SSL mode is on "Full (strict)"
No description
5 Replies
Laudian
Laudian5w ago
Are you certain that the custom domains point directly to the server IP and not to one of your subdomains? Do you have any examples?
olivier
olivierOP4w ago
the custom domains using subdomains (jobs.example.com) use a CNAME to app.niceboard.co but the apex custom domains (example.com) use A records directly to our IP. Worth noting that for some reason the initial proxy config seemed to work at first (for 30min or so) but then broke
Laudian
Laudian4w ago
It's completely expected that the subdomains using CNAMES would no longer work when you proxy your wildcard.
olivier
olivierOP4w ago
ok that makes sense but the others? And what's the solution to get those proxied then?
Laudian
Laudian4w ago
You shouldn't see this error on domains that use A records to your IP, that just doesn't make any sense. As for proxying the CNAMEs, Cloudflare has a feature called "Custom Hostnames" that allows you to proxy other domains via your account: https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/domain-support/
Cloudflare Docs
Custom hostnames · Cloudflare for Platforms docs
Cloudflare for SaaS allows you, as a SaaS provider, to extend the benefits of Cloudflare products to custom domains by adding them to your zone as custom hostnames. We support adding hostnames that are a subdomain of your zone (for example, sub.serviceprovider.com) and vanity domains (for example, customer.com) to your SaaS zone.

Did you find this page helpful?