This guide explains how to connect your own domain to your Minecraft server, allowing players to join using an address like play.yourdomain.com instead of an IP address and port. Say goodbye to purchasing a dedicated IP or having players type an ugly port number at the end of your domain.
What is an SRV Record?
An SRV (Service) record is a type of DNS record that tells Minecraft where your server is located. It allows you to:
- Use a clean domain name without showing the port number
- Point a subdomain to your server's IP and port
- Let players connect using
play.yourdomain.cominstead of123.456.78.90:25566
Without an SRV record, Minecraft only checks the default port (25565). If your server uses a different port, players would need to type the full IP and port to connect. An SRV record solves this by telling Minecraft which port to use.
Prerequisites
Before setting up your domain, you will need:
- A domain you own (e.g.,
yourdomain.com) - Access to your DNS settings (through your domain registrar or DNS provider)
- Your server's IP address and port (found in the Game Panel under your server's connection details)
Finding Your Server Details
- Log in to the Game Panel
- Select your server
- Your server address will be shown on the console page (e.g.,
123.456.78.90:25566oryour-server.obby.host) - Note down both the hostname and the port number
DNS Record Setup
You will need to create two DNS records:
- A Record - Points your subdomain to the server IP
- SRV Record - Tells Minecraft which port to use
Record Values
For this guide, we will use the following example values. Replace these with your own details:
| Value | Example | Your Value |
|---|---|---|
| Subdomain | play |
Your chosen subdomain |
| Server Address | your-server.obby.host |
From Game Panel |
| Server Port | 25566 |
From Game Panel |
| Your Domain | yourdomain.com |
Your domain |
Setup by Registrar
Cloudflare
A Record:
- Log in to your Cloudflare Dashboard
- Select your domain
- Go to DNS > Records
- Click Add record
- Set the following:
- Type: A
- Name:
play(or your chosen subdomain) - IPv4 address: Your server's IP address
- Proxy status: DNS only (grey cloud - important!)
- TTL: Auto
- Click Save
SRV Record:
- Click Add record
- Set the following:
- Type: SRV
- Name:
_minecraft._tcp.play(replaceplaywith your subdomain) - Service:
_minecraft - Protocol:
_tcp - TTL: Auto
- Priority:
0 - Weight:
5 - Port: Your server port (e.g.,
25566) - Target: Your server address (e.g.,
play.yourdomain.com)
- Click Save
Important: The proxy status must be set to "DNS only" (grey cloud). Cloudflare's proxy does not support Minecraft traffic.
Namecheap
A Record:
- Log in to your Namecheap Account
- Go to Domain List and click Manage next to your domain
- Go to the Advanced DNS tab
- Click Add New Record
- Set the following:
- Type: A Record
- Host:
play(or your chosen subdomain) - Value: Your server's IP address
- TTL: Automatic
- Click the tick to save
SRV Record:
- Click Add New Record
- Set the following:
- Type: SRV Record
- Service:
_minecraft - Protocol:
_tcp - Host:
play(your subdomain) - Value: Your server address (e.g.,
play.yourdomain.com) - Priority:
0 - Weight:
5 - Port: Your server port (e.g.,
25566) - TTL: Automatic
- Click the tick to save
GoDaddy
A Record:
- Log in to your GoDaddy Account
- Go to My Products and click DNS next to your domain
- Click Add in the Records section
- Set the following:
- Type: A
- Name:
play(or your chosen subdomain) - Value: Your server's IP address
- TTL: 1 Hour
- Click Save
SRV Record:
- Click Add in the Records section
- Set the following:
- Type: SRV
- Name:
_minecraft._tcp.play(replaceplaywith your subdomain) - Priority:
0 - Weight:
5 - Port: Your server port (e.g.,
25566) - Target: Your server address (e.g.,
play.yourdomain.com) - TTL: 1 Hour
- Click Save
Squarespace
A Record:
- Log in to your Squarespace Domains
- Select your domain
- Go to DNS > DNS Settings
- Click Add Record
- Set the following:
- Type: A
- Host:
play(or your chosen subdomain) - Data: Your server's IP address
- TTL: Automatic
- Click Save
SRV Record:
- Click Add Record
- Set the following:
- Type: SRV
- Host:
_minecraft._tcp.play(replaceplaywith your subdomain) - Priority:
0 - Weight:
5 - Port: Your server port (e.g.,
25566) - Data: Your server address (e.g.,
play.yourdomain.com)
- Click Save
Understanding the SRV Record Format
The full SRV record name follows this format:
_minecraft._tcp.play.yourdomain.com| Part | Meaning |
|---|---|
_minecraft |
The service name (tells DNS this is for Minecraft) |
_tcp |
The protocol (Minecraft uses TCP) |
play |
Your chosen subdomain |
yourdomain.com |
Your domain |
TTL and Propagation Time
TTL (Time To Live) determines how long DNS servers cache your records before checking for updates.
- Lower TTL (300-3600 seconds) = faster updates, but more DNS queries
- Higher TTL (86400 seconds) = slower updates, but fewer DNS queries
Propagation time is how long it takes for DNS changes to spread across the internet. This typically takes:
- Minimum: A few minutes
- Average: 1-4 hours
- Maximum: Up to 48 hours (rare)
If your domain does not work immediately, wait a few hours and try again.
Testing Your Domain
Once your DNS records are set up and propagated, test your domain:
In Minecraft:
- Open Minecraft and go to Multiplayer
- Click Add Server or Direct Connect
- Enter your domain (e.g.,
play.yourdomain.com) - You should see your server appear with the correct player count and MOTD
Online Tools:
- mcsrvstat.us - Enter your domain to check if it resolves correctly
- DNSChecker.org - Check if your DNS records have propagated globally
Troubleshooting
Domain Not Resolving
If your domain is not working:
- Check propagation - Use DNSChecker.org to see if your records have propagated
- Verify your records - Double-check that all values are entered correctly
- Wait longer - DNS propagation can take up to 48 hours in some cases
- Check for typos - Ensure the subdomain and service names are spelled correctly
Wrong Port or Connection Refused
If you can see the server but cannot connect:
- Verify the port - Make sure the port in your SRV record matches your server's port
- Check the target - Ensure the SRV target points to the correct server address
- Server online - Confirm your server is running in the Game Panel
Cloudflare Proxy Issues
If you are using Cloudflare and the domain does not work:
- Make sure the Proxy status is set to DNS only (grey cloud)
- Cloudflare's orange cloud proxy does not support Minecraft traffic
- Edit your A record and click the orange cloud to turn it grey
SRV Record Not Being Used
If Minecraft ignores your SRV record and asks for a port:
- Verify the SRV record name starts with
_minecraft._tcp. - Check that the full record name matches your subdomain exactly
- Try clearing your local DNS cache:
- Windows: Run
ipconfig /flushdnsin Command Prompt - macOS: Run
sudo dscacheutil -flushcachein Terminal - Linux: Run
sudo systemd-resolve --flush-cachesin Terminal
- Windows: Run
Need Help?
If you are still having trouble connecting your domain:
- Support Ticket
- Discord Server - use the
/supportcommand - Email: [email protected]