Skip to main content
Networking

SRV Records for Minecraft Servers Explained

Learn what SRV records are, how they work with Minecraft Java Edition, and how to set them up so players can connect without typing a port number.

4 min read7 sectionsJava & Bedrock1.21

What Are SRV Records?

SRV (Service) records are a type of DNS record that tells clients where a specific service is hosted, including the port number. For Minecraft, srv records minecraft Java Edition clients use allow players to connect to play.example.com instead of play.example.com:25567. The SRV record tells the game client which port and hostname to use behind the scenes.

When You Need SRV Records

You need srv records minecraft if:

  • Your server runs on a non-standard port (anything other than 25565).
  • You use a shared hosting provider that assigns a random port.
  • You want a clean domain name without a port suffix.
  • You run multiple servers on the same IP with different ports.

If your server runs on port 25565, you technically do not need an SRV record. The Minecraft client defaults to port 25565 when no port is specified.

How to Create an SRV Record

Go to your DNS provider's dashboard and create a new SRV record with these values:

FieldValue
Service_minecraft
Protocol_tcp
Nameplay.example.com (or @ for root domain)
Priority0
Weight5
PortYour server's port (e.g., 25567)
TargetYour server's hostname (e.g., node1.example.com)

The full record name is _minecraft._tcp.play.example.com. Some DNS providers assemble this from separate fields, others want you to type it out.

Verifying Your SRV Record

Use the nslookup or dig command to check:

dig SRV _minecraft._tcp.play.example.com

You should see a response containing your target hostname and port. DNS propagation can take a few minutes to a few hours.

Common Mistakes

  • Wrong service name: It must be _minecraft, not minecraft or mc.
  • Wrong protocol: Always _tcp. Minecraft Java uses TCP.
  • Target is an IP instead of hostname: SRV records should point to a hostname (A record), not directly to an IP address.
  • Missing A record for target: The target hostname must resolve to an IP via its own A record.

SRV Records and Bedrock

Minecraft Bedrock Edition does not support srv records minecraft Java Edition uses. Bedrock clients require a direct IP and port. If you support both editions, use the SRV record for Java and provide the direct IP:port for Bedrock players.

For setting up a clean domain for your server, see custom domain setup. If you need dynamic DNS because your IP changes, check our dynamic DNS guide.

Need a proxy-ready network? Astroworld Hosting supports Velocity, BungeeCord, and multi-server setups on every plan.

Questions about SRV Records for Minecraft Servers

What does SRV Records for Minecraft Servers come down to?

SRV (Service) records are a type of DNS record that tells clients where a specific service is hosted, including the port number.

What are the numbers behind SRV Records for Minecraft Servers?

For Minecraft, srv records minecraft Java Edition clients use allow players to connect to play.example.com instead of play.example.com:25567.

Which command does SRV Records for Minecraft Servers use?

Use the nslookup or dig command to check: You should see a response containing your target hostname and port. This guide uses dig SRV _minecraft._tcp.play.example.com.

What should you avoid while doing SRV Records for Minecraft Servers?

If your server runs on port 25565, you technically do not need an SRV record.

SRV Records for Minecraft Servers Explained: Learn what SRV records are, how they work with Minecraft Java Edition, and how to set them up so players can connect without typing a port number.
SRV Records for Minecraft Servers Explained, from the Networking guides on Astroworld.

Blocks and items in this guide

Target in MinecraftTarget

Target is named in the SRV Records for Minecraft Servers guide above. Look them up in the item database.

More guides on this site

More Networking Guides

Related Tools & Databases