Skip to content
EndercloudKnowledge Base
GuideDomains & DNS

Connect your own domain to your Minecraft server

Add an SRV record named _minecraft._tcp.play with priority 0, weight 5, your server port and your node hostname as target. Java players then join with play.yourdomain.com.

Updated 3 min read
Difficulty:
Intermediate
Time:
10 minutes
On this page

Instead of sharing in6.endercloud.in:45568, Java players can join with a name like play.yourdomain.com, with no port. You do this with an SRV record in your domain's DNS. It takes one record and about five minutes.

What you need

  • A domain and access to its DNS settings. You can register one with Endercloud or use one you already own.

  • Your server's node hostname and port. Open your server in the Game Panel: the header shows something like in6.endercloud.in:45568. The hostname is in6.endercloud.in; the port is 45568.

Add the SRV record

In your DNS settings (the billing panel's DNS management for Endercloud domains, or Cloudflare), add this record. Replace play with the name you want, and use your own port and hostname.

Field

Value

Type

SRV

Name

_minecraft._tcp.play

Priority

0

Weight

5

Port

Your server port, e.g. 45568

Target

Your node hostname, e.g. in6.endercloud.in

TTL

Auto (or the default)

Players now join with play.yourdomain.com. Some DNS panels split the name into separate fields: then use Service _minecraft, Protocol TCP and Name play. To use the bare domain (yourdomain.com) instead of a subdomain, the name is just _minecraft._tcp.

The SRV target must be a hostname, never an IP address. The DNS rules for SRV records require the target to be a name that has its own address record. The node hostname from your panel already is one, so you can use it directly.

Want your own name as the target?

You can also point the target to a name on your own domain. Create an A record first, then use it as the SRV target:

Type

Name

Value

A

mc

Your server IP (shown on the Dashboard)

SRV

_minecraft._tcp.play

0, 5, your port, target mc.yourdomain.com

Using the node hostname directly is simpler, and it keeps working if the node's IP ever changes.

Using Cloudflare

  • Any A or CNAME record used for Minecraft must be set to DNS only (grey cloud). The orange proxy only works for websites and breaks Minecraft connections. SRV records are never proxied.

  • In Cloudflare's SRV form, enter the name, priority, weight, port and target as in the table above.

How long it takes

New records usually work within a few minutes, but DNS changes can take up to a few hours to reach every network. If it doesn't work straight away, wait and try again, and check the record for typos. In Minecraft, remove and re-add the server in your server list so it looks the name up again.

Bedrock players

Bedrock Edition ignores SRV records. Bedrock players need an A or CNAME record and must type the port. See Use a domain with a Bedrock server.

Other options

  • Free subdomain: no domain? Create a free yourname.example.com address at subdomain.endercloud.in. It is removed if your server stays offline for a long time, and like any SRV-based address it doesn't work for Bedrock clients.

  • Dedicated IP: with a dedicated IP on port 25565, a plain A record is enough and no SRV record is needed. It is available on request; open a ticket for the price.

Frequently asked questions

Players still have to type the port

The SRV record isn't being found. Check the name is exactly _minecraft._tcp.play (with underscores and dots), the port matches your panel, and the target is a hostname. Then wait for DNS to update.

Can I use an IP address as the SRV target?

No. Use your node hostname, or create an A record and use that name as the target.

Will my domain stop working if my server moves?

If your server moves to another node or port, update the SRV record's port and target to the new address shown in the panel.

Was this article helpful?

Related articles

Join Our Discord

Connect with our community of gamers and developers

Get instant support, share experiences, and stay updated with the latest news

Join Discord