Want players to join with a clean domain instead of an IP and port? This guide explains how to point a Minecraft domain at your server, including the SRV setup for Java servers using a non-default port.
For Java on the usual TCP port 25565, an A or AAAA record is enough. If your host gave you another port, add an SRV record under _minecraft._tcp with the server port and hostname. That target hostname needs its own A or AAAA record; it must not be a CNAME or an IP address. Once DNS changes have had time to spread, try joining with the domain alone.
Using Cloudflare? Set the server’s A record to DNS-only (the gray cloud), since Minecraft traffic should not go through its HTTP proxy. Bedrock does not use SRV records, so Bedrock players need an A record and must enter the port separately. The guide also explains how an A record for the main domain can support both Java and Bedrock connections.


+1