# Set Up a Custom Domain with SRV Record for Minecraft (/docs/minecraft/srv-record)



An SRV record lets players connect using a clean domain (e.g., `play.yourserver.com`) instead of an IP and port number.

What You Need [#what-you-need]

* A domain name you own
* Access to your domain's DNS settings (usually through your registrar: Cloudflare, Namecheap, GoDaddy, etc.)
* Your server IP and port from the [XGamingServer Panel](https://panel.xgamingserver.com)

Setting Up the SRV Record [#setting-up-the-srv-record]

In your DNS provider, create:

**An A Record:**

| Type | Name   | Value            | TTL  |
| ---- | ------ | ---------------- | ---- |
| A    | `play` | `your.server.ip` | 3600 |

**An SRV Record:**

| Type | Name                   | Priority | Weight |   Port  | Target                |
| ---- | ---------------------- | :------: | :----: | :-----: | --------------------- |
| SRV  | `_minecraft._tcp.play` |     0    |    5   | `25565` | `play.yourdomain.com` |

Replace `25565` with your actual server port if different.

How It Works [#how-it-works]

Instead of connecting to `192.168.1.1:25565`, players type `play.yourdomain.com` in Minecraft's multiplayer menu — no port number needed.

DNS Propagation [#dns-propagation]

After creating the records, wait **5–30 minutes** for DNS to propagate. Some providers take up to 48 hours.

Troubleshooting [#troubleshooting]

| Issue                                    | Fix                                                             |
| ---------------------------------------- | --------------------------------------------------------------- |
| Domain not resolving                     | Check A record points to correct IP. Wait for DNS propagation.  |
| "Can't connect" with domain but IP works | Verify SRV record format — `_minecraft._tcp` prefix is required |
| Wrong port                               | SRV record port must match your server's actual port            |

> 📝 **Note:** SRV records only work for Minecraft Java Edition. Bedrock Edition does not support SRV records.

Related Guides [#related-guides]

* [Join Your Server](/docs/minecraft/join-server)
* [Server Configuration](/docs/minecraft/server-properties)
