Setting Up DNS for a Minecraft Server
Last Updated: March 2026
2 min read
To set up a Minecraft server with a custom domain, you almost always need two DNS records: an A record and an SRV record. Follow these steps to configure them.
How to Set Up DNS Records for Minecraft
Step 1: Add the A Record
- Log in to your domain registrar account.
- Navigate to your domains list.
- Click the domain name you would like to manage.
- Click Manage DNS Records.
- For the A Record:
- Leave the Type drop-down as A
- In the Host field, type your desired subdomain (e.g.,
mc) - Copy and paste your Minecraft server’s IP address into the Answer field
- Leave TTL as 300 (default)
- Click the Add Record button
Example:
| Type | Host | Answer | TTL |
|---|---|---|---|
| A | mc | 203.0.113.50 | 300 |
Step 2: Add the SRV Record
- Select SRV in the Type drop-down menu.
- Enter the following values:
| Field | Value | Example |
|---|---|---|
| Service | minecraft | minecraft |
| Protocol | tcp.subdomain | tcp.mc |
| Weight | 5 | 5 |
| Port | Your server port (default is 25565) | 25565 |
| Target | subdomain.domain.com | mc.example.com |
| TTL | 300 | 300 |
| Priority | 0 | 0 |
- Click Add Record.
Example:
| Type | Service | Protocol | Weight | Port | Target | TTL | Priority |
|---|---|---|---|---|---|---|---|
| SRV | minecraft | tcp.mc | 5 | 25565 | mc.example.com | 300 | 0 |
That’s it! It should work once propagation is complete (most likely within the hour, 24 hours at the very longest).
Connecting to Your Server
Once DNS has propagated, players can connect to your Minecraft server using your custom domain:
- With subdomain:
mc.example.com - With custom port: If using a non-default port, players may need to enter
mc.example.com:PORT
Troubleshooting
- Can’t connect? Wait up to 24 hours for DNS propagation.
- Wrong port? Make sure the port in the SRV record matches your Minecraft server configuration.
- Check records: Use WhatsMyDNS to verify your A record is resolving correctly.
- Firewall: Ensure your server’s firewall allows incoming connections on the Minecraft port.
Tags:
dns
minecraft
srv record
a record
gaming
domains