I deployed my project online and set up my custom domain for it, and I wanted to add the subdomain “www” for my website, which I did, but the website shows “Connection timed out, error code 522”.
I searched online, then I tried to add “@” for the recode, but it says “An A, AAAA, or CNAME record with that host already exists…”. I checked my original DNS and deleted all the records there, still got this error, did I miss anything, or what other step do I need to do? to make my subdomain work?
(btw, this domain was used in Shopify, and I removed it from the Shopify domain setting already)
Hi there, thank you for the quick reply, yes, I added the www at the bottom, but my website: wwwdigitalinsightmktgcom is not connected, and shows the connection timed out. I even tried removing the www one and adding @ as the root, still had that already existing error.
But I will read the docs first, see if I can figure it out, Thanks!
Since the apex domain has been added and working correctly already, I think this guide would be more appropriate if the goal is to redirect the www subdomain to the apex domain:
Thanks for the reply, and I tried to add either A with IPv4 or AAAA with IPv6, but both showed the “CNAME record with that host already existed”, I believe it’s the www one.
You need to delete the existing CNAME record for www before you can add the A or AAAA record. You can’t have both CNAME and A records for the same name!
2 - Go to Workers & Pages → Overview → digita##### → Custom domains and add www.yourdomain.com side by side with the custom domain you already have there.