server redirect

I have two different servers, one of which runs a website and the other a Minecraft server. And I want to do everything through one domain. What's the best way to do this?
2 Replies
SuperHelpflare
SuperHelpflare•2mo ago
Support AI
Based on the provided documentation, it seems that you can achieve this by using Cloudflare's DNS features. For your website, you can set up a standard DNS record, such as an A record, to point to your website server's IP address. For your Minecraft server, you can set up an SRV record, which allows you to specify a custom port for the Minecraft server. This way, you can use the same domain for both your website and Minecraft server. According to the documentation, you can set up an SRV record by navigating to your website in Cloudflare, then going to DNS → Records, and adding a new SRV record with the following settings: * Service: _minecraft * Protocol: TCP * Name: @ * TTL: auto * Priority: 0 * Weight: 0 * Port: <your Minecraft server port> * Target: <your domain> Please note that you should use an unproxied (DNS-only) record for the SRV record, as mentioned in the documentation: https://community.cloudflare.com/t/826965 Additionally, you may need to set up a CNAME record or other DNS records depending on your specific setup. It's also worth noting that you can use Cloudflare Spectrum to accelerate and protect your Minecraft server, as mentioned in the documentation: https://community.cloudflare.com/t/826965
Feedback
Feedback has been submitted! Thank you :)
This is an AI generated response, it may not be 100% accurate. Please validate the output. You can ask followups by replying to this message or mentioning me.
Frerduro
Frerduro•2mo ago
bot answered already 😛

Did you find this page helpful?