A domain like play.example.net is easier to remember than an IP address, looks more professional, and lets you move to a new machine without telling every player a new address. Setting it up takes a few minutes in your domain's DNS settings.
In the DNS settings of your domain, add an A record:
play (for play.example.net). Use @ for the domain itself.203.0.113.10.If your server uses the default Java port 25565, you are already done: players can type play.example.net. If your DNS provider offers a proxy or “orange cloud” option for websites, turn it off for this record, because normal web proxies don't pass Minecraft traffic.
Many hosts give you a different port, like 25570. An SRV record tells Java Edition which port to use, so players still don't have to type it. Add a record of type SRV with these values:
_minecraft and _tcp. Some panels want the full name in one field, like _minecraft._tcp.play.0 and Weight: 5 (any values work when you have one server).25570.Written out, the record looks like this:
_minecraft._tcp.play.example.net. SRV 0 5 25570 mc.example.net.
For more background, read server IP and port explained.
Bedrock Edition doesn't read SRV records. Bedrock players type your domain in the address field and the port in the separate Port field. The domain still works for them through the A record, so point it at the same machine and tell them the Bedrock port, for example 19132.
New DNS records often work within minutes, but changes can take longer to reach every network because resolvers cache old answers. The time depends on the TTL value of the record. If your own PC still shows the old result, restarting the game or flushing your DNS cache can help.
Enter your domain in our server status checker. It shows whether the server is online and which SRV record it found, if any. Once it works, use the domain everywhere, including your listing on CraftRank, so you never have to update the address after changing hosts.