Minecraft
How to connect a domain to your Minecraft server (SRV record)
Instead of giving players an IP address and port, you can give them a name like play.example.com. You need a domain and access to its DNS settings.
If your server uses the default port 25565
Create one A record that points your name to your server's IP address:
- Type: A
- Name: play
- Value: your server IP
Players can now join with play.example.com.
If your server uses a different port
You also need an SRV record so players don't have to type the port:
- Service: _minecraft
- Protocol: _tcp
- Name: play (or your subdomain)
- Port: your server's port
- Target: a hostname that points to your server, such as the A record above
- Priority and Weight: 0 and 5 are fine
Important
- If your DNS provider offers a proxy (like Cloudflare's orange cloud), turn it off for game records. Minecraft traffic can't go through it.
- DNS changes can take a few minutes to a few hours to show up.
- Bedrock Edition does not use SRV records, so Bedrock players must type the address and port.