CNAME setup without root CNAME

#1

With Partial/CNAME setup, if a domain’s DNS does not allow for root CNAME or Alias records, is it possible to point the root (@) A record to any one of Cloudflare’s node’s IP address?

#2

I don’t use Partial/CNAME setup, but it sounds like a Hosting Partner setup. Typically, root domain won’t work, but ‘www’ does.

So give yourself a root A record with some IP address like 8.8.8.8 (doesn’t really matter what) that’s set to :orange: and then add a Page Rule that matches example.com/* that has a Forwarding URL (301) that points to https://www.example.com

Now visitors to your root domain will automatically redirect to the www for your domain.

2 Likes
#3

This solves so many problems… thanks. I wanted to add one little thing: the Forwarding URL should actually be: https://www.example.com/$1

This will append the URL string after the .com from the original address to the new one.

1 Like