How do I link my domain name to my Minecraft server?
In this guide, we'll look at how to link a domain name to your game server.
The process involves creating a sub-domain to connect to your server, for example: play.mydomain.com.
Gathering the necessary information
To get started, we'll need to retrieve the server's port and host. Go to your Hosterfy management panel.
For example, you can see that the example server host above is game2-en.hosterfy.com and its port is 6000.
Create DNS entry on cPanel
Go to your cPanel panel, in the “Domains” section, then “Zone Editor”.
Then click on “Manage” on the relevant domain.
Then click on the drop-down menu next to “Add a record” and select the “SRV” option.
You will then have several values to define:
Name: _minecraft._tcp.mydomain.mydomain.com (For example, to have an address in “play.mydomain.com”, enter “_minecraft._tcp.play.mydomain.com”)
TTL: Default
Priority: 0
Weight: 5
Port: Server port retrieved previously, e.g. 6000
Target: Host of the previously retrieved server, for example: game1-en.hosterfy.com
To finish, click on “Save”.
Example
Let's take an example, in the case of the test server, if I want a connection address of “play.mondomaine.com”.
You've finished configuring your subdomain on the cPanel DNS zone.
Create DNS entry on Plesk
Go to your Plesk panel, to the “Hosting and DNS” tab and then to “DNS settings”.
Then click on “Add a record”.
You will then have several values to define:
Recording type: SRV
TTL: Default
Service name: minecraft
Protocol: tcp
Domain name: The subdomain to be used, e.g. “play”.
Priority: 0
Weight: 5
Target host: Host of the previously retrieved server, for example: game1-en.hosterfy.com
Target port: Port of the previously retrieved server, e.g. 6000
Click “Apply” and “OK” to confirm.
Example
Let's take an example, in the case of the test server, if I want a connection address of “play.mondomaine.com”.
You have now finished configuring your subdomain on the Plesk DNS zone.
Create DNS entry on OVH
Go to “DNS zone”.
Then select “Add a new entry” and type “SRV”.
You will then have several values to define:
Subdomain: _minecraft._tcp.mysubdomain (For example, to have an address in “play.mydomain.com”, enter “_minecraft._tcp.play”)
TTL: Default
Priority: 0
Weight: 5
Port: Server port retrieved previously, e.g. 6000
Target: Host of previously retrieved server, e.g. game1-en.hosterfy.com
Click “Next” then “Validate”.
Example
Let's take an example, in the case of the test server, if I want a connection address of “play.mondomaine.com”.
You've finished configuring your subdomain on the OVH DNS zone.
Create DNS entry on Cloudflare
Select your domain and go to “DNS”.
Then select “Add a recording”.
You will then have several values to define:
Type: SRV
Name: The subdomain to be used, e.g. “play”.
Service: _minecraft
Protocol: TCP
TTL: Automatic
Priority: 0
Weight : 5
Port: Previously retrieved server port, for example: 6000
Target: Host of the previously retrieved server, for example: game1-en.hosterfy.com
Click “Next” then “Validate”.
Example
Let's take an example, in the case of the test server, if I want a connection address of “play.mondomaine.com”.
You've finished configuring your subdomain on the Cloudflare DNS zone.
Conclusion
Congratulations! You've linked a domain name to your game server!
Please note that a DNS zone can take up to 48 hours to propagate, so it's normal for the domain not to work immediately.
Dont hesitate to ask on Discord Hosterfy if you encounter a problem !
Post a comment
Comments