📢 LordCloud support has moved to Ballastra — Join now →
Docs

SRV records

Let players join your Minecraft server with just a domain — no port — using an SRV record.

1 min read
On this page

Game servers often run on ports other than 25565. An SRV record tells Minecraft Java which host and port to use, so players can type just play.example.com.

Step 1: an A record for the host#

Type Name Value
A mc Your server's IP

Step 2: the SRV record#

Field Value
Service _minecraft
Protocol _tcp
Name play (the name players will type, without the domain)
Priority 0
Weight 5
Port Your server's port, for example 25577
Target mc.example.com

In zone-file form:

text
_minecraft._tcp.play.example.com. 3600 IN SRV 0 5 25577 mc.example.com.

Players now join with play.example.com.

Notes#

  • Java Edition only. Bedrock ignores SRV records; Bedrock players must enter the port. See Java and Bedrock connectivity.
  • With Cloudflare, both records must be DNS only (grey cloud).
  • The target must be a hostname with an A record — not an IP, and not a CNAME.

Check#

bash
dig +short _minecraft._tcp.play.example.com SRV
Have a question? Chat with us👋