Default DNS records for Cloudflare-hosted domain?

I’ve transferred a domain to Cloudflare. It doesn’t have any DNS records because all I want to do is 301 redirect any web traffic to a different URL. However, it’s not working, and in the DNS section of my Cloudflare dashboard I just get this warning:
Required steps to complete zone set-up Add an A, AAAA, or CNAME record for www so that www.mcbwebdesign.co.uk will resolve. Add an A, AAAA, or CNAME record for your root domain so that mcbwebdesign.co.uk will resolve.
What should I use as A/CNAME records for my www and root domains, given I don’t actually want to route traffic anywhere? I just want a HTTP request to come in, and Cloudflare redirect the user to a different URL based on Page Rules? Also, slightly-related side question: what is the difference between Page Rules and Redirect Rules (beta)?
2 Replies
Chaika
Chaika2y ago
For originless records Cloudflare recommends either AAAA 100:: (IPv6 Discard) or 192.0.2.0 (documentation range), to ensure traffic doesn't go anywhere https://developers.cloudflare.com/dns/troubleshooting/faq/#what-ip-should-i-use-for-parked-domain--redirect-only--originless-setup You just need one if proxied, ex: AAAA @ 100:: Proxied AAAA www 100:: Proxied
Also, slightly-related side question: what is the difference between Page Rules and Redirect Rules (beta)?
Page rules will eventually be going away (likely not soon, and likely with a migration of some sort, but eventually), and Redirect Rules are more flexible, although more difficult for simple redirects. Bulk redirects would be easier for that, or you could still use page Rules
Martin Bean
Martin BeanOP2y ago
@ryu.senpai @chaika.me Thanks, both!

Did you find this page helpful?