Special Offer: Save Upto 10% on Game Servers & Bot Hosting

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:

FieldValue
TypeSRV
Name_minecraft._tcp.play (replace play with your subdomain)
Priority0
Weight5
PortYour server's port
Targetplay.yourdomain.com
TTLAuto

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 A record for Bedrock players, e.g. pe.yourdomain.com

Was this helpful?

Your feedback helps us write better guides.

Related Articles

More from FAQ (Minecraft).

Still need help?

Our team is on Discord around the clock. Real humans, real answers.