Getting started
Connecting a Domain
This guide teaches you how to add a custom domain to your Minecraft Server
How to Connect a Custom Domain to your Minecraft Server
This guide shows you how to let players join your FernHost server using a domain like play.yourdomain.com instead of an IP and port or subdomain.
You will need:
- A registered domain (e.g. Namecheap, GoDaddy, Cloudflare, Porkbun, etc.)
1. Find your FernHost server IP and port
- Log in to your FernHost panel.
- Open the server you want to connect a domain to.
- Find:
- The IP address (top left).
- The port (click the network tab on the left).
Keep this page open, you will copy these into your DNS later.
2. Decide how players will connect
You have two common options:
-
Option A:
play.yourdomain.com:PORT- Simple setup: only create an A record.
- Players must still type the port.
-
Option B:
play.yourdomain.comwithout a port- Recommended for public servers.
- Requires an A record + SRV record.
- Hides the port from players.
You can choose either option. The DNS steps below cover both.
3. Create the A record (points domain → server IP)
- Log in to the website where you manage your domain’s DNS (e.g. Cloudflare, Namecheap, GoDaddy, etc.).
- Open the DNS or DNS Management / Zone page.
- Add a new record:
- Type:
A - Name / Host:
- Use
playif you wantplay.yourdomain.com, or - Use
@if you want the root domainyourdomain.comto go directly to the server.
- Use
- Value / Target: your FernHost server IP address only (no port).
- TTL: leave default (Auto or 5–30 minutes is fine).
- Type:
- Save the record.
After this propagates, play.yourdomain.com (or your chosen host) will point to your server IP.
It can take up to 24 hours to apply.
4. (Optional) Add an SRV record to hide the port
Add an SRV record so players can still join with just play.yourdomain.com.
-
In your domain DNS settings, add a new record:
- Type:
SRV
- Type:
-
Fill in the SRV fields (exact names vary by provider, but the values are the same):
- Service:
_minecraft - Protocol:
_tcp - Name / Host:
- For
play.yourdomain.com, many providers expect_minecraft._tcp.play, or they split it into fields:- Service:
_minecraft - Protocol:
_tcp - Name/Host:
play
- Service:
- For
- Priority:
0 - Weight:
5(or0if that’s the default; it doesn’t matter for a single server). - Port: your FernHost server port (e.g.
25570). - Target: the hostname from your A record, e.g.:
play.yourdomain.com- or
mc.yourdomain.comif that’s what you used for the A record.
- Service:
-
Save the SRV record.
Now, even if your server is on a custom port, players can connect using only play.yourdomain.com.
5. Wait for DNS to update
DNS changes are not instant.
- Most changes apply within a few minutes, but it can take up to an hour or more in some cases.
- While waiting, avoid changing the same records too often; that can make troubleshooting harder.
You can test if your records are visible using external DNS lookup tools from your domain provider or third‑party DNS checkers.
6. Join your server using the domain
Once DNS has propagated:
- Open Minecraft.
- Go to Multiplayer → Add Server.
- In Server Address, enter:
play.yourdomain.com(if you followed this guide), orplay.yourdomain.com:PORTif you chose Option A and kept the port visible.
- Click Done, then select your server and Join.
If it does not connect, double‑check:
- The A record IP matches your FernHost server IP.
- The SRV record (if used) points to the correct host and port.
- Your server is online.
Example configurations
| Goal | Record Type | Name / Host | Value / Target | Extra (SRV) |
|---|---|---|---|---|
play.yourdomain.com:25565 | A | play | 123.45.67.89 (server IP) | None needed (default 25565) |
play.yourdomain.com (server on 25570) | A | mc | 123.45.67.89 (server IP) | SRV: _minecraft._tcp.play, port 25570, target mc.yourdomain.com |