Custom Domains and SRV Records
Custom Domains and SRV Records
By default, connecting to a Minecraft server with a non-standard port requires players to type :PORT at the end of the address. You can provide a clean address like play.yourdomain.com by configuring an SRV Record through your DNS provider (such as Cloudflare, Namecheap, or GoDaddy).
Required DNS Records
To route traffic properly, you must configure two DNS records: an A Record pointing to the node IP and an SRV Record directing the game protocol to your assigned port.
Record 1: The Target A Record
| Field | Value | Notes |
|---|---|---|
| Type | A | Standard IPv4 mapping |
| Name / Host | node (or mc) | Results in node.yourdomain.com |
| IPv4 Address | 45.13.237.208 (NL0) or 57.128.180.78 (UK1) | Your node IP |
| Proxy Status | DNS Only (Grey Cloud) | Do not proxy via Cloudflare |
Important: Cloudflare's HTTP proxy (orange cloud) cannot handle raw Minecraft TCP game packets. You must toggle the proxy off (DNS Only) or connections will fail.
Record 2: The Service SRV Record
| Field | Value | Notes |
|---|---|---|
| Type | SRV | Service mapping record |
| Service | _minecraft | Standard Minecraft game service |
| Protocol | _tcp | TCP transport protocol |
| Name | play | Results in play.yourdomain.com |
| Priority | 0 | Standard priority |
| Weight | 5 | Standard weight |
| Port | YOUR_ASSIGNED_PORT | The port given in your dashboard |
| Target | node.yourdomain.com | Must match Record 1 hostname |
Testing Your Domain Setup
DNS propagation typically takes between 2 and 15 minutes. To test your domain:
- Open Minecraft Java Edition.
- Go to Multiplayer -> Add Server.
- In the Server Address field, type
play.yourdomain.com(no port number needed). - Connect to your world.