How do I use a custom domain and hide the port?


If you want players to connect using a custom address like play.yourdomain.com instead of your server IP and port, you can do this by adding both an A record and an SRV record in your DNS settings.

Step 1: Create an A Record

This connects the subdomain to your server's IP address.

  • Log in to your domain provider's DNS panel
  • Create a new A record with the following:
    • Host: play
    • Type: A
    • Points to: Your server's IP
    • TTL: Automatic or 3600

Step 2: Create an SRV Record

This tells the domain which port to use, so your players do not have to type it manually.

  • Create a new SRV record with:
    • Service: _your service name (example: _minecraft or _fivem)
    • Protocol: _tcp
    • Name: play
    • Priority: 0
    • Weight: 5
    • Port: Your server’s port (example: 25595)
    • Target: play.yourdomain.com
    • TTL: 3600

Important Notes

  • This only works if your DNS provider supports SRV records
  • Akashi Hosting supports full DNS control through the cPanel Zone Editor
  • Popular domain providers that support SRV records include:
    • Namecheap
    • Cloudflare
    • GoDaddy
    • Google Domains
    • Dynadot
    • Hover
    • Porkbun
    • Hostinger
  • Limited or no SRV support:
    • Wix
    • Squarespace
    • Shopify
  • SRV records must point to the same subdomain as your A record
  • DNS changes may take 5 to 24 hours to fully apply

If you're not sure how to set this up, open a support ticket and we’ll help you configure your domain.

  • 1 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

Related Articles

How do I change my launch command or command line?

Custom command lines let you control which JAR file runs, add modloaders, and apply launch flags...

What is a GSLT and why won’t my server run without it?

GSLT stands for Game Server Login Token. Valve requires all dedicated servers for games like...

How do I find the real IP address of my game server?

Your game server’s hostname uses a format like us-01-linux.akashi-hosting.com. This format isn’t...