What you need
- A domain you manage, like example.net.
- The IP address of your server.
- The port your server runs on.
Add the records
First add an A record for a host name, like node1.example.net, that points to the IP of your server. Then add an SRV record with these values:
- Service: _minecraft
- Protocol: _tcp
- Name: what players type before your domain, like play (or @ for the domain itself)
- Priority: 0 and weight: 5
- Port: the port of your server, like 25570
- Target: the host name from the A record, like node1.example.net
Common mistakes
- The target is an IP address. It must be a host name with an A or AAAA record.
- The target has no A record, so players get “Unknown host”.
- On Cloudflare the A record of the target is proxied (orange cloud). Set it to DNS only.
- Players type the port too. With a port in the address, Minecraft skips the SRV record.
Bedrock does not use SRV
Bedrock players always need the address and the port. Give them both.