How to Set Up a Custom Domain
Find out how to set up a custom domain for your Minecraft server.
A custom domain makes your server more professional and easier to remember. Follow this guide to set up yours!
Prerequisites
You need to own a domain name (can be paid or free)
Access to your domain’s DNS settings
Your server’s IPv4 address
Step-by-Step Guide
Set DNS Servers
- Point your domain’s DNS servers to Cloudflare or any other DNS provider
- Create an account if you don’t have one
- Add your domain to your DNS provider
- Update your domain’s nameservers at your registrar
DNS changes can take 24-48 hours to fully propagate, though they often complete much sooner.
Create an A Record for Your Root Domain
- Go to the DNS section for your domain
- Create a new “A” record
- For “Name”, enter
@
(represents your root domain) - For “IPv4 address”, enter your server’s IP address (e.g., 83.392.19.107)
- Save the record
This will point example.com directly to your server IP.
Set Up a Subdomain
- Create another A record with your chosen subdomain (e.g.,
play
) - Point it to the same IPv4 address as your root domain
You can use any subdomain name you prefer such as “mc”, “play”, “minecraft”, or “server”.
Create a SRV Record
Create an SRV record with these values:
- Name:
_minecraft._tcp.play
(replaceplay
with your subdomain) - Protocol:
TCP
- TTL:
Auto
- Port:
25565
(replace with your server port) - Target:
play.example.com
(replace with your subdomain and domain)
The SRV record allows players to connect to your server using just your domain name without specifying a port.
Wait for Propagation
Wait a few minutes for your DNS changes to take effect.
Feel free to ask questions about this process! Our support team is here to help.