Please note: This is for advanced users and you should either have a basic understanding of DNS before attempting this, or contact your domain name registrar to assist you. This guide is the extent of the support we offer on custom DNS, and as such, our support team will only be able to provide you with this article.
With the 1.3 patch for Minecraft, SRV DNS records can now be used to connect to a hostname without requiring a port.
If you have a Multiplay server, we already set up a custom hostname by default for you, allowing you to connect to your Multiplay Minecraft Server without requiring a port on the end of the address. You can find this on your server dashboard in Clanforge.
Setting up a Domain Name
This is a guide on how to purchase and set up a domain name for your Minecraft server. We will be using the IP address: 188.8.131.52:25565 And setting up the domain: minecraft.myserver.co.uk
If you already own the domain you'd like to use (In this case, myserver.co.uk), skip to Setting up the DNS
Purchasing a Domain Name
We recommend namecheap as the best place to register domains if you don't already own one!
From their page, you can search for the domain you want, and complete the ordering process.
Setting up DNS
Once you have purchased the domain, following this guide will aid you in adding the records to your server.
Information you'll need for following the article above:
Hostname: _minecraft._tcp.mc Type: SRV Priority: 0 TTL: 3600 Destination: 1 25565 minecraft.myserver.co.uk (This is always 1, followed by the port in your server address, then the full domain you are using)
Hit the Save Changes button, as per the guide. From here, you will need to add another record with the following information:
Hostname: minecraft (The domain prefix you are using, in this case, minecraft) Type: A Destination: 184.108.40.206 (The IP address of your server, everything before the : in the address listed on ClanForge)
Once that is added, it can take up to 24-48 hours to propagate across the internet.
Custom Record format
An SRV record has the form:
_minecraft._tcp.name TTL class SRV priority weight port target
- name: the domain name for which this record is valid.
- TTL: standard DNS time to live field.
- class: standard DNS class field (this is always IN).
- priority: the priority of the target host, lower value means more preferred.
- weight: A relative weight for records with the same priority.
- port: the TCP or UDP port on which the service is to be found.
- target: the canonical hostname of the machine providing the service.
If your DNS provider asks for service, put in _minecraft and if it asks for proto or protocol, put in _tcp.
For example, if your server was hosted on 220.127.116.11:25565 An example SRV record in textual form that might be found in a zone file might be the following:
_minecraft._tcp.mc 3600 IN SRV 0 5 25565 minecraft.myserver.co.uk minecraftIN A 18.104.22.168
This points to a server named minecraft.myserver.co.uk redirecting to a Minecraft server running on 22.214.171.124:25565 The priority given here is 0, and the weight is 5.
As in MX records, the target in SRV records must point to hostname with an address record. Pointing to a hostname with a CNAME record is not a valid configuration.