© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•11mo ago•
1 reply
trk

Pointing cloudflare domain to new pages project results in host error (522)

I have two domains and one Cloudflare Pages project. Previously, the Pages project was using one domain (Domain A), but I want to switch it to another domain (Domain B).

I updated the DNS settings under Domain B, adding the following CNAME record:

CNAME  
[Domain B] → [Project].pages.dev  
Proxied  
CNAME  
[Domain B] → [Project].pages.dev  
Proxied  


After making this change, I noticed the update took effect because the domain now leads to an error instead of the previous project. However, visiting the domain now results in a "Connection timed out" (Error 522) message, indicating an issue at the host level.

Previously, the domain pointed to a different Pages project and worked correctly. Now, it does not resolve properly to my current Pages project.

What I’ve tried:
- Confirmed the CNAME record is set correctly under Domain B.
- Verified that the record is proxied through Cloudflare.
- Verified no other record points to anything related to the previous project it was using.

Does the fact that it now results in error, rather than the previous project indicate the DNS propagation is done? Its only been 30 minutes or so.

How can I resolve this issue and correctly link Domain B to my Cloudflare Pages project?

Thanks.
EDIT: resolved. see below.
Screenshot_20250329-134313.png
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Cloudflare DNS 522 error when pointing at Cloudflare Pages
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
522 Error Cloudflare Pages and Custom Domain
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
Cloudflare Pages: www subdomain returns 522 error ("unknown host")
Cloudflare DevelopersCDCloudflare Developers / general-help
10mo ago
522 error on new domain
Cloudflare DevelopersCDCloudflare Developers / general-help
10mo ago