How Can I Connect My Domain to My Minecraft Server
Link a custom domain to your Minecraft server using DNS A and SRV records.
Connecting Your Domain to Minecraft
Before we start you will need a domain. You can purchase a domain from registrars such as Hostinger, Namecheap, GoDaddy, or similar.
Step 1 ā Create an A Record
Visit your domain provider and locate the Advanced DNS Zone (also called "DNS Zone", "DNS", or "Advanced DNS").
Create an A record:
- Name:
play(or whatever subdomain you want, e.g.mc) - Value: Your Minecraft server's IP address
- TTL: Auto
If your server has a Dedicated IP (port 25565), you can stop here ā players can connect using just the domain.
Step 2 ā Create a SRV Record (for non-standard ports)
If your server uses a port other than 25565, you need a SRV record:
| Field | Value |
|---|---|
| Type | SRV |
| Name | _minecraft._tcp.play (replace play with your subdomain) |
| Priority | 0 |
| Weight | 5 |
| Port | Your server's port |
| Target | play.yourdomain.com |
| TTL | Auto |
Notes
- DNS changes can take up to 24 hours to propagate, but new records usually show instantly
- If you also run Geyser (Bedrock support), create a separate
Arecord for Bedrock players, e.g.pe.yourdomain.com
Was this helpful?
Your feedback helps us write better guides.
Related Articles
More from FAQ (Minecraft).
How to Install and Setup SkinRestorer
Restore player skins on cracked servers using the SkinRestorer plugin.
How to Install and Setup GeyserMC
Allow Minecraft Bedrock clients to join Java servers using GeyserMC.
How to Install and Use OpeNLogin
Allow players to authenticate ownership of their account on cracked servers.
Still need help?
Our team is on Discord around the clock. Real humans, real answers.