I was setting R2 up and tried using my custom domain, that made the domain point to the bucket instead of my repo files/project. Then I clicked on “Remove domain” in the R2 custom domain context menu thinking that would revert the changes but it cleaned my DNS records, I don’t remember the previous configuration and my domain is pointing to nowhere, how can I revert the changes or discover the IP to create the configuration again?
Welcome to the Cloudflare Community.
I’m sorry to hear about those unexpected results. If your project uses Cloudflare Pages, you should be able to reconnect the site from the Cloudflare Pages custom domain settings. You should also be able to find details of any deleted records in your audit logs.
Hey, thanks for pointing me to the audit log, didn’t know there was one. I am using Cloudflare Pages, but in the custom domain setup the only requirement to reconnect is to create a CNAME, but the problem is I don’t have the necessary A records. Unfortunately in the logs, I can’t see the deletion of the A records, only the CNAME, is there a reason for that?
When you use Cloudflare DNS with Pages, the custom domain setting will create the necessary records automatically. Make sure that you don’t already have a conflicting record.
A CNAME may not coexist with any other record type at the same label, so there shouldn’t have been any A records with the same name as the CNAME.
What A records are you expecting to find?
I’m not sure, I bought my domain from Squarespace and remember having some A records when I finished moving it to Cloudflare. Anyway, the Pages CNAME trick worked! I just need to find how to redirect www requests to the root domain, but that’s another problem. Thanks for the help!
Say no more. We got you.
A dynamic redirect as described in example 2 of the Cheat Sheet may be easier than using the Bulk Redirects described in the Cloudflare Pages docs.
Can’t thank you enough!
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.