How can I link my domain name to a Minecraft server

It is possible to link your domain name to a Minecraft server in your Namecheap account with the help of an SRV record.

A 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 using TCP. The default port is 25565.

It is possible to create an SRV record for Namecheap domains that are using our BasicDNS, 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 (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., yourdomain.tld) to your Minecraft server are the following:

Service: _minecraft
Protocol: _tcp
Priority: 0
Weight: 5
Port: [custom port]
Target: [your domain]
TTL: Automatic or 30 min (our default TTL)

The settings look as follows:


2) Mapping a subdomain (e.g., mc.yourdomain.tld, www.yourdomain.tld, etc.) to your Minecraft server.

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

Please note that mc.yourdomain.tld is an example, and all settings should be adapted to your subdomain. Thus, if you wish to connect a subdomain, add your subdomain to Protocol and Target or Protocol only if you have a custom Target.

The A record set for the subdomain mc.yourdomain.tld has the following values:

Host : mc
Value: IP address of your Minecraft server
TTL: Automatic or 30 min (our default TTL)

The SRV record should look as follows in this case:

Service: _minecraft
Protocol: _tcp.mc
Priority: 0
Weight: 5
Port: [custom port]
Target: [your domain with the subdomain]
TTL: Automatic or 30 min (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.



If you have any questions, feel free to contact our Support Team.

Updated
Viewed
78891 times

Need help? We're always here for you.

notmyip