How to route your Minecraft server through a domain [Cloudflare]

This tutorial will work with most DNS services.

Adding the records

  1. Locate the base IP of your serverServer IP
  2. Create an A record in the DNS section of your domain on Cloudflare. You can name the A record anything you want and put the IP of your server without the port in the IPv4 part. Then, click "Add Record." Make sure the name you set isn't a name you want people to use when they enter your game.Cloudflare A Record
  3. Create an SRV record with the service being "_minecraft" and the protocol TCP. You can change the name to something your visitors would join your server by it such as "play" which would resolve to "".
  4. Then, find the port listed for your server and set it as your port for your SRV record and make sure your target is the A record plus your domain. If you chose "clyde" for your A record and your domain is "" it would be ""


Try testing if your DNS records are working by adding your server.

If it works, you can play on your server using your domain with friends, your community, or by yourself.

Syntax playing minecraft by himself

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to properly install a Minecraft modpack

This tutorial will help you properly install a Minecraft modpack.   First, download your...

Increasing Garrys Mod performance

We all know it, Garry's Mod is a hard server to run. Because Garry's Mod is a source game, it...