522 Timeout After setting DNS server to point to Cloudflare Pages

I have a working Cloudflare Pages website. I wanted to use a custom domain, I have had this domain bought from GoDaddy. Before, this domain was forwarding to a Looker Studio dashboard. I removed the forwarding rule and added Cloudflare’s nameservers. Then I added the custom domain in my Cloudflare page. I keep getting 522 and Cloudflare’s error page, I have no idea what I did wrong. I asked GoDaddy they told me that the issue is either Hosting or Domain DNS. Both are with Cloudflare so it is purely issue with Cloudflare only. Any idea how to fix this so that my custom domain start going to my Cloudflare Page app? I also installed WARP and tried the website after switching it on, but with no luck, still got the same error. Pages: https://egytech.pages.dev/ Domain: https://www.egytech.fyi/ WHOIS DNS pointing to Cloudflare's ns: https://who.is/dns/egytech.fyi I also attached a screenshot of CF DNS Management
egytech.fyi DNS information - who.is
egytech.fyi DNS information. DNS records such SOA, TTL, MX, TXT and more.
No description
4 Replies
Chaika
Chaika8mo ago
Every hostname you want to use with Cloudflare Pages needs to be added as a custom domain under your pages project custom domains tab For example, if you want both https://egytech.fyi/ (which does work) and https://www.egytech.fyi/ (doesn't) to work and serve the same thing, you need to add both as Custom Domains Otherwise you could have one redirect to the other (pick www or root as your primary, and have the other one redirect via a cloudflare redirect), better for seo too
CliffJ
CliffJ2d ago
Why doesn't a CNAME record work for this purpose? What's the difference between that and adding it under custom domains?
Chaika
Chaika2d ago
Custom Domains not only creates the record for you, but also changes the configuration on the Pages side to allow that hostname/subdomain to work, issue an ssl certificate for it, etc. You can think of it as a "host allowlist"
dapp3rdan
dapp3rdan2d ago
Piggy-backing on this. I'm having the exact same problem. I know that I need to add a custom domain, unfortunately, the CNAME (privatelabel.app) I need to use is a fallback origin for custom hostnames and CloudFlare pages won't let me add it as a custom domain:
Deletion of this record is not allowed. This has been configured as a fallback origin server for SSL for SaaS. For more information, see https://developers.cloudflare.com/api/operations/custom-hostname-fallback-origin-for-a-zone-update-fallback-origin-for-custom-hostnames.
We have to retain it as it was provided to partners to enter as their CNAME record and has taken 6 months to get them all in place. Is there any solution other than changing the fallback origin to something else?
Want results from more Discord servers?
Add your server