H
10Corp Premium Hosting

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

  1. Log in to your domain registrar account.
  2. Navigate to your domains list.
  3. Click the domain name you would like to manage.
  4. Click Manage DNS Records.
  5. 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:

TypeHostAnswerTTL
Amc203.0.113.50300

Step 2: Add the SRV Record

  1. Select SRV in the Type drop-down menu.
  2. Enter the following values:
FieldValueExample
Serviceminecraftminecraft
Protocoltcp.subdomaintcp.mc
Weight55
PortYour server port (default is 25565)25565
Targetsubdomain.domain.commc.example.com
TTL300300
Priority00
  1. Click Add Record.

Example:

TypeServiceProtocolWeightPortTargetTTLPriority
SRVminecrafttcp.mc525565mc.example.com3000

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

Still need help?

Our support team is available 24/7 to assist you.