How to connect your own domain to a Minecraft server (SRV record)

Getting started · updated 28 November 2026

If you own a domain, for example myserver.com, players can join using it without typing a port. No domain? Use a free subdomain from the panel.

What you need

  • your server's IP address and port from the Console or Network tab,
  • access to your domain's DNS settings, at your registrar or in Cloudflare.

DNS records

Add two records. Replace 1.2.3.4 and 25565 with your server's IP and port.

TypeNameValue
Amc1.2.3.4
SRV_minecraft._tcppriority 0, weight 5, port 25565, target mc.myserver.com

Players type myserver.com in the game. Minecraft reads the port from the SRV record by itself.

If you want play.myserver.com instead of myserver.com, name the SRV record _minecraft._tcp.play.

Warning: in Cloudflare, turn off the orange cloud (proxy) on the A record. The Cloudflare proxy does not pass Minecraft traffic.

Frequently asked questions

I added the records and the address does not work.

DNS changes can take up to a few hours. Also check that the port in the SRV record matches your server's port.

Does an SRV record work on Minecraft Bedrock?

No. Players on phones and consoles have to enter the address and port by hand.