Categories
Using a Custom Domain with Your Game Server
Web Hosting
·
61 views
·
Updated 5 hours ago
Can I Use a Domain Name Instead of an IP?
Yes! You can point a domain or subdomain to your game server IP address using a DNS A record.
Setting Up a Subdomain for Your Game Server
- Log into your domain registrar or DNS provider
- Create an A record:
- Name: Your subdomain (e.g.,
playforplay.yourdomain.com) - Value: Your server IP address (without the port)
- TTL: 3600 or Auto
- Name: Your subdomain (e.g.,
- Wait for DNS propagation (can take up to 48–72 hours, but often works within minutes)
Connecting with the Domain
Players connect using: play.yourdomain.com:PORT
The port is still required unless you set up an SRV record (see below).
SRV Records (Java Edition Only)
An SRV record lets Java Edition players connect without typing the port. Create an SRV record:
- Service:
_minecraft - Protocol:
_tcp - Priority: 0
- Weight: 5
- Port: Your server port
- Target:
play.yourdomain.com
Note: SRV records only work for Minecraft Java Edition. Bedrock Edition does not support SRV records.
Important Notes
- If your domain nameservers point to AgilaHost web hosting, manage DNS through HestiaCP, not your registrar
- The A record points to the IP only. The port must still be specified by the player (unless using SRV)
Still need help?
Create a Support Ticket