Using a Custom Domain with Your Game Server

Web Hosting · 2 views · Updated 10 hours ago

Can I Use a Domain Name Instead of an IP?

Yes! You can point a domain or subdomain to your game server's IP address using a DNS A record.

Setting Up a Subdomain for Your Game Server

  1. Log into your domain registrar or DNS provider
  2. Create an A record:
    • Name: mc (or whatever subdomain you want, e.g., play)
    • Value: Your server's IP address (without the port)
    • TTL: 3600 or Auto
  3. Save the record
  4. Wait for DNS propagation (can take up to 48-72 hours, but often works within minutes)

Connecting

Players can now connect using mc.yourdomain.com:PORT instead of the IP address.

Important Notes

  • You still need to include the port number — DNS only resolves the domain to an IP
  • If your domain's nameservers point to AgilaHost's web hosting, you'll need to manage DNS through HestiaCP, not your registrar
  • SRV records can be used to hide the port number for Java Edition, but not for Bedrock

Still need help?

Create a Support Ticket

Related Articles