Help with DNS resolution (using CF pages and CF domain name)

I currently have my site hosted using CF pages and bought a domain using CF's registrar, it works fine and all for the most part where if i type domain.app, it displays the contents I have deployed using CF pages (i set this up using pages' "custom domains") after i set this up tho, there was this notice on the dashboard saying something like i have to set up the A,AAAA and CNAME records such that www.domain.app would also redirect to domain.app so i tried (as seen on the screenshot) but it didn't work what'd i do wrong? (it's my first time dealing with domains so i'm pretty unfamiliar with these stuff) btw, the CNAME record here is the record automatically set by CF after i linked the domain name to my pages project
3 Replies
AlphaCentauri
AlphaCentauri•6mo ago
You don't need both an A and AAAA record for this. All you need to do is create one proxied AAAA record with the name of www and content of 100:: which is a Discard Only address, but when proxied allows for redirect rules to work. That's the only extra record you need to create. Once you have done this, you have to actually create the redirect rule in the Cloudflare dashboard so the WWW to non WWW redirect works. This guide shows you how to create the rule: https://developers.cloudflare.com/pages/how-to/www-redirect/
j3llyb3ans
j3llyb3ans•6mo ago
aight thanks! i'll try this out it worked, thanks!
AlphaCentauri
AlphaCentauri•6mo ago
Awesome 😄
Want results from more Discord servers?
Add your server
More Posts