Redirect on new domains

I have just transfered a domain to cloudflar.

I have a @ and www CNAME records pointing at a domain I want to forward to.
I do not have any other DNS records.

I have set a Page rule where I point “/” to the domain I want a 301.

For some reason I get ip.address not found error.

How should I fix that?

Followed this answer, and it worked. (but still had to set the A record to a real IP, not a fake one)

For some reason you need to have A record pointing to a random IP.

You need to have the record as it otherwise wouldnt resolve and consequently not fire the page rule. And no, it doesnt need to be a “real” IP address.