---
title: "Connect your own domain to your Minecraft server"
url: https://help.endercloud.in/docs/connect-your-own-domain-to-your-minecraft-server
category: "Domains & DNS"
type: Guide
tags: ["cloudflare", "dns", "domain", "minecraft", "srv"]
keywords: "custom ip, custom domain, srv record, a record, connect domain, server address, cloudflare dns, _minecraft._tcp, minecraft srv not working, join without port, server ip name, domain minecraft server, connect domain to minecraft server, srv record minecraft, custom domain minecraft, play.yourdomain.com, minecraft domain setup, srv record setup, domain not working minecraft, cloudflare srv record"
difficulty: intermediate
time: "10 minutes"
updated: 2026-11-14
source: Endercloud Knowledge Base (official)
---

# 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.

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](/docs/how-to-register-a-domain) or use one you already own.
    
-   Your server's **node hostname** and **port**. Open your server in the [Game Panel](https://panel.endercloud.in): 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`.

> **Warning:**
> 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](/docs/use-a-domain-with-a-bedrock-server).

## Other options

-   **Free subdomain:** no domain? Create a free `yourname.example.com` address at [subdomain.endercloud.in](https://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](https://billing.endercloud.in/tickets/create) for the price.
    

## Frequently asked questions

**Q: 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.

**Q: 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.

**Q: 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.
