First both domains must be within cloudflare. Both domains Nameservers must be changed to cloudflare's nameservers.
-
Then login to first domain cludflare DNS dashboard. Lets say our first domain is hublearn.dk
-
click Add Record
-
Select Type A, In Name field, enter: hublearn.dk and in IPV4 address, add: 192.0.2.1. Save.
-
Again Click Add Record
-
Select Type A, In Name field, enter: www and in IPv4 address, type: 192.0.2.1. Save.
-
Make sure both field has proxy status: Proxied and TTL auto set.
-
Now go to Page Rules tab.