Connecting a Domain to your Minecraft Server with Namecheap

How can I link my domain name to a Minecraft server

It is possible to link your domain name to a Minecraft server from Sparked Host's side with the help of an SRV record.
service record (SRV record) is data specification in the Domain Name System defining the location, i.e., the hostname and port number of servers for the specified services.

The Minecraft service allows associating your domain with a game server listening on TCP. The default port is 25565.
It is possible to create an SRV record for Sparked Host domains that are using BasicDNS, BackupDNS (a legacy option), PremiumDNS or FreeDNS. 

1) Mapping a bare domain (yourdomain.tld) to your Minecraft server

- Create an A record that actually points your domain to the server following this instruction.

In this case, use these values for your A record:

Host : @
Value: IP address of your Minecraft server
TTL: Automatic or 30 min <it's our default TTL>

- Once it is done, follow the steps described in this article to create an SRV record. It is needed when you are running a server on a custom port

The values to connect any bare domain (e.g. "sparkedhost.us") to your Minecraft server are the following:

Service:  _minecraft
Protocol: _tcp
Priority: 0
Weight: 5 <If set to 0, port and weight would randomly switch, and break>
Port: [custom port]
Target: [your domain] <without subdomain, e.g. "sparkedhost.us">
TTL: Automatic or 30 min <it's our default TTL>

The settings look as follows:


  


2) Mapping a subdomain (mc.yourdomain.tld or www.yourdomain.tld) to your Minecraft server

Let’s check how records should be changed to have the mc.sparkedhost.us subdomain linked to the Minecraft server.

The A record set for the subdomain mc.nctest.info has the following values:

Host : mc
Value: IP address of your Minecraft server
TTL: Automatic or 30 min <it's our default TTL>

The SRV record should look as follows in this case:

Service:  _minecraft
Protocol: _tcp.mc
Priority: 0
Weight: 5 <If set to 0, port and weight would randomly switch, and break>
Port: [custom port]
Target: [your domain with the subdomain] <e.g. "mc.sparkedhost.us">
TTL: Automatic or 30 min <it's our default TTL>

Let's see how it will look in your host records:





Click on the Save All Changes button once the setup is completed.

It may take up to 30 minutes for the new settings to be accepted globally.



That's it! 

  • 5 Users Found This Useful
Was this answer helpful?

Related Articles

How do I create an email account?

Creating an email account is super easy! Log into cPanel Either type "Mail" into the search bar...

How do I install an app in my cPanel?

In this article we will help you to install any app (Like Wordpress, Prestashop, Joomla...)  in...

Introduction to SSL Certificates

What is SSL? Secure Sockets Layer (SSL) is a standard security technology for establishing an...

Wordpress Error: installing heavy WordPress themes

  2. Click in your subdomain or in www and find your WordPress files   3. Click in wp...

How to point your Minecraft Server to your domain with Cloudflare

  One of the easiest ways to manage your domain is to do it through CloudFlare (use their...