I had been hosting a minecraft server for a few years. I decided to switch to Cloudflare and ad a website. I am not a “computer person”, but I can generally figure things out with the help of “The Google”.
My problem is this:
the server is hosted on 111.111.111.111 and the website is hosted on 222.222.222.222. How do I set this up so that mc.minecrafterservername.com goes to 111.111.111.111 and www.minecraftservername.com goes to 222.222.222.222.
First go to the DNS tab in the Cloudflare dashboard. There you’ll have to add an A record for mc.minecrafterservername.com pointing to 111.111.111.111. Make sure the proxy toggle is set to DNS only or it will not work.
Then add an A record for www.minecraftservername.com pointing to 222.222.222.222. Here the proxy toggle should be set to Proxied to ensure your website is protected by Cloudflare.
You should have the following DNS records: A mc.minecraftservername.com -> 111.111.111.111 A minecraftservername.com -> 222.222.222.222 CNAME www.minecraftservername.com -> minecraftservername.com
First go to the DNS tab in the Cloudflare dashboard. There you’ll have to add an A record for mc.minecrafterservername.com pointing to 111.111.111.111 . Make sure the proxy toggle is set to DNS only or it will not work.
Then add an A record for www.minecraftservername.com pointing to 222.222.222.222 . Here the proxy toggle should be set to Proxied to ensure your website is protected by Cloudflare.