How to point a domain to Minecraft (SRV record)
Setting up a connection to a Minecraft server without needing to type the IP and port, using an SRV record.
If your Minecraft server doesn't have a dedicated IP address and runs on a specific port (for example, 185.10.20.30:25580), you can use DNS records to ensure your players can connect using an elegant address like 'play.mysupercraft.com' without having to type the port.
You can achieve this by combining an A record and a special SRV record.
Step 1: Creating an A record for the subdomain
First, you need to point to the IP address of the machine running the server. We will create a so-called 'hidden' subdomain.
- Name/Host: mc-node (or anything else)
- Type: A
- Value: The machine's IP address (WITHOUT the port, e.g., 185.10.20.30)
Step 2: Creating the SRV record
The SRV record is the clever trick that tells Minecraft which port to go to behind the domain.
- Type: SRV
- Name/Host: _minecraft._tcp.play (If you want the address to be play.mysupercraft.com. If you just want mysupercraft.com, type _minecraft._tcp)
- Priority: 0
- Weight: 5
- Port: Enter your MC server's port (e.g., 25580)
- Target: mc-node.mysupercraft.com (That is the subdomain from Step 1)
Minecraft will read the record itself and silently connect players to port 25580 in the background. Your server will now run on 'play.mysupercraft.com'.
Didn't find what you were looking for? Contact us.