Creating DNS Records in Cloudflare for a Minecraft Server

Please select the type of setup you require, on your root domain or on a subdomain

Root domain, e.g. example.com
  1. Add an A record for your root domain example.com or @ and point it to the IP address of your Minecraft server. Make sure it is set to :grey: as your server won’t work running through Cloudflare’s proxy.
  2. Create an SRV record for the service _minecraft, protocol TCP, name example.com or @, priority and weight 0, port by default is 25565, but your host may provide a different port to specify and target example.com.
Subdomain, e.g. subdomain.example.com
  1. Add an A record for your subdomain e.g. subdomain for subdomain.example.com and point it to the IP address of your Minecraft server. Make sure it is set to :grey: as your server won’t work running through Cloudflare’s proxy.
  2. Create an SRV record for the service _minecraft, protocol TCP, name subdomain for subdomain.example.com, priority and weight 0, port by default is 25565, but your host may provide a different port to specify and target subdomain.example.com.


Tutorial Reference: CT-46

Reviewed: 05/20

This is a Community Tutorial, most are wiki posts, so can be contributed to by Regulars and MVPs here. If there is a tutorial you would like to see, you can request one here.

If you would like to provide any feedback on this tutorial, please post in the #Meta category, tag your post #TutorialFeedback and let us know the Tutorial Reference above.

Other great resources on this community include the Community Tips . These address best practices when configuring Cloudflare, how to fix issues you may see, and tools to troubleshoot. Also you can view Expert Tips, great posts on the community from people in the know that may help you with your issue.

We encourage users to check out these great resources and the Cloudflare Support Centre before posting