Skip to content
Guides

Minecraft Custom Server Address: SRV Record Setup Guide

Set up a custom Minecraft server address with an SRV record. Step-by-step DNS instructions for Cloudflare, Namecheap, and GoDaddy, plus troubleshooting tips.

Share this story

Nothing kills the vibe of a new Minecraft server faster than handing your friends an address like `192.168.4.27:25565`. A custom address such as `play.yourserver.com` looks professional, is easy to remember, and takes about ten minutes to set up with an SRV record. Here is exactly how to do it.

## What an SRV record does

An SRV record is a special DNS entry that tells Minecraft clients which server host and port to connect to for a given domain. Once it is in place, players just type `play.example.com` into the multiplayer menu and the game quietly resolves the real IP and port behind the scenes. No port numbers to remember, and if you ever move hosts, you update one DNS record instead of telling everyone a new IP.

## What you need before you start

– A domain name you control (for example, `example.com`)
– Access to your domain’s DNS settings at your registrar
– Your Minecraft server’s IP address and port (Java Edition defaults to port 25565)

## Step 1: Point an A record at your server

First, create an **A record** for a subdomain that points directly at your server’s IP address. Something like `mc.example.com` works well. This gives the SRV record a hostname to target in the next step. If your host gave you a hostname instead of an IP, you can skip this and use their hostname as the target.

## Step 2: Create the SRV record

Now add the **SRV record**. In your registrar’s DNS panel, the fields look like this:

Field What to enter
Service `_minecraft`
Protocol `_tcp`
Name / Host `play` (the subdomain players will type)
Priority `0`
Weight `5`
Port `25565` (or your server’s actual port)
Target `mc.example.com` (the A record from Step 1)

The full record reads as `_minecraft._tcp.play.example.com`, and it points at `mc.example.com` on port 25565. Priority and weight only matter if you run multiple servers for failover, so the values above are fine for a single server. One important rule: the **target must be a hostname, not a raw IP address**.

## Registrar walkthroughs

**Cloudflare:** Go to DNS, click Add record, choose SRV. Fill in the fields above. Critical: set the A record from Step 1 to **DNS only** (gray cloud, proxy off). Cloudflare’s proxy does not handle Minecraft traffic, and leaving it on will break connections. See Cloudflare’s [DNS basics guide](https://www.cloudflare.com/learning/dns/what-is-dns/) if the panel looks unfamiliar.

**Namecheap:** Open Advanced DNS for your domain, click Add New Record, and choose SRV Record. Enter the service, protocol, host, priority, weight, port, and target as shown in the table.

**GoDaddy:** Open the DNS page for your domain, click Add, and select SRV. Fill in each field, using `@` or your subdomain for the host portion depending on which address players should type.

## Java Edition vs Bedrock: an important caveat

SRV records work with **Minecraft: Java Edition**. Bedrock Edition does not support SRV records, so console and mobile players will still need your IP address and port (Bedrock defaults to port 19132). If your community plays on both editions, share the pretty domain with Java players and the raw address with Bedrock players.

## Propagation and testing

DNS changes can take anywhere from a few minutes to 48 hours to fully propagate, though it is usually on the faster end. Before announcing the address, verify the record with an online SRV lookup tool, then test it yourself: open Minecraft, go to Multiplayer, click Add Server, and enter `play.example.com` (your subdomain). If you land in your world, you are done.

## Troubleshooting

– **It does not connect:** confirm the target is a hostname with a working A record, not an IP address.
– **Cloudflare users:** double-check the A record is set to DNS only. The orange proxied cloud breaks Minecraft connections.
– **Wrong port:** make sure the SRV port matches the `server-port` in your server’s `server.properties` file.
– **Still nothing after an hour:** DNS may still be propagating. Wait it out, then check the record with a lookup tool to confirm it published correctly.

Once it is working, put that custom address everywhere: your Discord, your server list entries, your social bios. It is a small touch that makes a server feel real. For more on where Minecraft is headed, check out our coverage of [Minecraft hitting Switch 2](https://gamebeacon.co/minecraft-switch-2-preorders/) and [Minecraft Dungeons 2 storming Game Pass](https://gamebeacon.co/minecraft-dungeons-2-game-pass/), plus [Xbox’s plans to take Minecraft everywhere](https://gamebeacon.co/xbox-xp-unit/).