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.
- 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 isin6.endercloud.in; the port is45568.
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 |
|
Priority |
|
Weight |
|
Port | Your server port, e.g. |
Target | Your node hostname, e.g. |
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 |
| Your server IP (shown on the Dashboard) |
SRV |
| 0, 5, your port, target |
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.comaddress 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
Pick the right plan for your player count, plugins and modpacks — with a plan comparison table and chart.
Server Linked Domains (Domain Integration, beta) connects your domain to a website, API or web panel running on your bot hosting server, with HTTPS and a free SSL certificate. It is not for Minecraft servers.
Add A, CNAME, MX, TXT and SRV records for your Endercloud domain from the billing panel, or switch to Cloudflare nameservers. Changes can take minutes to hours to spread.
Get a free short subdomain for Java players, connect your own domain, or ask for a dedicated IP so everyone can join without typing a port.
