25% OFF First Invoice

Code at Checkout: APEX25

Setting Up A Minecraft Subdomain For Your Server

Last modified on Dec 6, 2021 in general

mc head By ApexHosting

 

Overview

When playing on a newly created Minecraft server, you will need to join with a numerical IP address and port. The IP of a Minecraft server may look like 195.27.18.197:25749, which can be difficult to remember. In response, many users aim to connect using a sub-domain, which can be significantly easier to remember.

Once you have the rights to use a domain through purchasing one or given the rights by the owner, you can customize your sub-domain to join your server. An example of a sub-domain may look like play.apexminecrafthosting.com. You can purchase your own unique domain from resellers online such as GoDaddy, Google, Namecheap, and many more. Setting up a third party sub-domain can be disorienting, so we will be walking you through the steps on how you can set up a sub-domain for your Minecraft server.

 

How to create a subdomain

Nearly all domain registrars have the same configurations when it comes to setting up your domain/subdomain. As they are all very similar, we will cover how you can set it with GoDaddy.
 

Configuring/adding your subdomain

  1. Click on your name to the top right of GoDaddy’s website, then locate My Products and click it.
  2. On this page, you will see a section labeled All your products and services. Under this, look for Domains.
  3. Under Domains, you are going to see a listing of all the domains you have on your account. To the right of the domain, click on DNS. On this page, you are going to see a section named Records. There are two records we will be adding, the A Record and the SRV Record.

 

A Record

  1. In the records section, click “ADD” and choose “A” from the dropdown.
  2. You are going to see a few required values that will have to be filled out.
  3.  
    Host: Defines the subdomain, e.x “play” in play.mydomain.com
    Points to: Defines the IP address the A record should resolve to. This will be your Minecraft Servers IP address.
    TTL: Defines the average time it takes for the changes to propagate.

  4. You will want to first set “Host” to the subdomain you want. For example, if you put in Play for the Host, it will set it as play.yourdomain.com.
  5. Next is Points to. You will want to set this to your server IP address (Not including the port).
  6. After you set that, set the TTL to ½ hour. This will define the average time it takes for the changes to the domain records to propagate.

Here is an example of the end result:

Nature
 

SRV Record

After creating the A record, you will need to create an SRV (Service) record. This tells the A record what service port to resolve to when connecting with our sub-domain. While the A record points to the IP of the host the server is located on, the SRV record uniquely identifies to the intended service, in this case, the Minecraft server port.

  1. In the records section, click “ADD” and choose “SRV” from the dropdown.
  2. You are going to see a few required values that will have to be filled out.
  3.  
    Service: _minecraft
    Protocol: _tcp
    Name: The hostname of our sub-domain, in our case, it’s “play”.
    Target: The full name of the sub-domain, e.x “play.mydomain.com”.
    Priority: 0
    Weight: 5
    Port: The port your Minecraft Server is using.
    TTL: Defines the average time it takes for the changes to propagate (lower is preferred).

  4. The first value you will set is the Service. You will need to set it to _minecraft.
  5. Next is the Protocol. This needs to be set to _tcp.
  6. After is the name. This needs to be set to subdomain. We set it to Play in the A record, so it needs to be set to the same here.
  7. Next is the Target, set this to the full subdomain. For example, play.mydomain.com.
  8. After you do this, you will have to set the Priority to 0 and the Weight to 5.
  9. The port will be set to your Minecraft server port. The default Minecraft port is 25565, so if you have a dedicated IP that is what you will set. Otherwise, you need to add the same exact port provided to you on your Minecraft server. Assuming our Minecraft Servers IP is 123.145.3.23:25786, the port would be set to 25786.
  10. The TTL will also be set to ½ hour as it was in the A Record.

Here is an example of the end result:

Nature
After all of these steps, simply wait for 30 minutes for everything to propagate and you should be set to join the Minecraft server with your new subdomain!
 

Common Issues

Not being able to join the server with the new subdomain:
If you aren’t able to join the server after you configure everything above, there are a few things you need to check. The first is that you have waited the 30 minutes to allow the domain to propagate. If your server has a port, it is also good to make sure that you set the SRV record correctly as otherwise, you may have to connect with the domain and the port. For example, “play.mydomain.com:25575”. To avoid having to do that, you can use a dedicated IP address. And finally, make sure to double-check that everything has been entered correctly in the DNS records.
 

Related Content

Connecting to your server
Creating a subdomain
What is a dedicated IP used for

Start Your Minecraft Server

Get started with your own minecraft server in 5 min and start trying out these great features.