How to configure this DNS setup?

Let’s say I have example.com in Cloudflare.

Now I want to have a CNAME record pointing example.com to something.else.com and then have a page rule to forward www.example.com to example.com.

So after creating the page rule I’ve created an A record for www pointing to 192.0.2.1 so that the page rule applies and this seems to work.

But now for some reason the CNAME that points example.com to something.else.com is not resolving at all.

Can someone give me hand?

That wont work, as a naked domain cannot be a CNAME and will automatically turn into a flattened A record, regardless of whether proxied or not.

If you want a CNAME you will have to use a proper hostname of that domain.

1 Like

Thanks @sandro .

I thought CNAME flattening would solve that.

It does :slight_smile: but it flattens it into an A record.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.