Set Up a Custom Domain with SRV Record for Minecraft

How to use a custom domain (play.yourdomain.com) to connect to your Minecraft server without a port number.

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

  • 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

Setting Up the SRV Record

In your DNS provider, create:

An A Record:

TypeNameValueTTL
Aplayyour.server.ip3600

An SRV Record:

TypeNamePriorityWeightPortTarget
SRV_minecraft._tcp.play0525565play.yourdomain.com

Replace 25565 with your actual server port if different.

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

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

Troubleshooting

IssueFix
Domain not resolvingCheck A record points to correct IP. Wait for DNS propagation.
"Can't connect" with domain but IP worksVerify SRV record format — _minecraft._tcp prefix is required
Wrong portSRV 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.

How is this guide?

40% Off — Limited TimeGet your Minecraft server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page