MinecraftDomain configurationJava Edition Server5MIN READ
How to connect a domain to your server
2025-07-10

Steps to Link Your Server to a Domain
To get started, make sure you own a domain. If you don't have one yet, you can register it through providers like Namecheap or GoDaddy.
1. Log in to Your Domain Provider
Go to your domain provider's dashboard and locate the DNS Management section.
This section may be labeled as DNS Zone, Advanced DNS, or something similar.
2. Create an A Record
- In the Name/Subdomain/Host field, enter the subdomain you want to use (e.g., play or mc)
- If you're not using a subdomain, simply enter @
- In the Value/IP Address/Points To field, input your server's IP address (exclude the port number)
3. Set Up an SRV Record (If Required)
- In the Target field, enter the full subdomain you used earlier, including the main domain (e.g., play.example.com or mc.example.com)
- If no subdomain is used, enter the main domain (e.g., example.com)
- In the Name field, type the subdomain (e.g., play or mc)
- If no subdomain is used, enter @
- Set the Priority to 5
- Set the Weight to 0
Finalizing the Setup
Once these settings are saved, your domain will be successfully linked to your server!
Important Notes:
- DNS propagation can take up to 24 hours. If your domain doesn't work immediately, wait and try again later.
- If you're using Cloudflare, ensure that the A record's proxy status is set to DNS only (gray cloud) to prevent connection issues.