Skip to main content

Connecting a Custom Domain with an SRV Record

By default, players join a server using an IP and port, like play.example.com:25565. An SRV record lets players connect using just a clean domain, play.example.com, with no port needed.

You'll need a domain name and access to its DNS settings (through your domain registrar or a DNS provider like Cloudflare).

Step 1: Point a Subdomain at Your Server

First, create a record that points your subdomain to your server's IP address:

  • If your server has a numeric IP, create an A record (e.g. play123.45.67.89).
  • If your host gave you a domain-style address, create a CNAME record pointing to it instead.

Step 2: Create the SRV Record

Now add an SRV record with the following values:

FieldValue
Service_minecraft
Protocol_tcp
Name / Hostyour subdomain, e.g. play
Priority0
Weight5
Portyour server's port, e.g. 25565
Targetthe domain from Step 1, e.g. play.example.com

Some DNS providers combine these into a single value field that looks like 0 5 25565 play.example.com.

Step 3: Wait and Test

DNS changes can take anywhere from a few minutes to a few hours to propagate. Once they do, players can join using just your domain, with no port required.

tip

Make sure the Target of your SRV record points to a domain with an A/CNAME record, not directly to an IP address. Pointing an SRV record straight at an IP will not work.