While using Minehut, all servers by default can be connected to by using the IP servername.minehut.gg. If you are interested in taking your server to the next level by using a custom domain, follow the tutorial below and you'll easily be able to set one up.
⚠️ Requirements:
- Dashboard access to the Minehut server you'd like to use the custom domain on. This works with free, paid and external plans!
- You will need to purchase a domain. This guide uses Cloudflare as it's a popular, affordable option, but you can use whichever domain registrar you'd like. The records needed are the same across all domain registrars, although the UI will look different than our screenshots if you use a different service.
- You will need to have the DNS records page of your domain registrar open in your browser. Most of the custom domain setup involves your providers website.
📒 This is a short overview of the steps we will cover, if you have setup domains in the past, then this should be a simple process.
- You need to verify your domain on our website with a TXT record
- You need to create a CNAME record for Java connectivity
- (Optional) You need to create both an SRV and CNAME record for Java and Bedrock connectivity
If you are unsure of how to do these three steps, please continue reading!
☑️ Step 1: Verifying ownership of your domain name
You will need to go to the Minehut Dashboard and click the "Manage" button on your server, and scroll down on the "Settings" page. If you do not see the "Manage" button, then you will need to click "Activate" first.
1. Please find the "Custom Domains" section and click the "Add Domain" button:
2. You will need to type the exact domain name that you want players to use when they join your server. The domain name should match the one you purchased, and the subdomain can be a name of your choosing (we will setup the records for it in the next steps). In this guide, we are using play
as the subdomain.
3. Please follow all of the steps in the next prompt, the highlighted section is the information you will need to add to your DNS records on your domain providers website. You will need to create a TXT record for the exact subdomain, with the exact value, in order for verification to be successful. It's recommended to use "Copy To Clipboard" to ensure it's copied correctly.
The TXT record should be created like this on your domain registrars website (the UI will look different depending on the domain registrar you're using). It's important to remember this needs to match the exact subdomain you entered earlier otherwise it will not verify.
4. Now that the TXT record has been created, you will need to head back to the Minehut dashboard and click the "Verify Domain" button seen in the earlier screenshot. Cloudflare usually takes only a few minutes to update, but some domain registrars can take up to 48 hours for the verification to complete. If everything went well, you should see the domain is now verified!
Now that your domain has been fully verified, it's time to move onto the next steps of making it joinable so players can use it to connect to your server.
🌐 Step 2: Setting up your domain name so that players can join
These next steps will depend on your server setup, your knowledge on setting up domains and the type of domain you want. We will cover both the easy setup, and the advanced (but more flexible) setup.
2A: Setting up your domain for Java players [Easy Method]:
1. Head to your domain registrars DNS record page and create a new CNAME record. This CNAME record should match the exact subdomain you entered and verified on the Minehut dashboard in the earlier steps of the guide.
- Record Type: CNAME
- Name / Domain Name: The subdomain you verified earlier (in this example,
play
) - Target Address:
<servername>.minehut.gg
(Replace<servername>
with the actual name of your Minehut server) - Proxy status (Cloudflare only): Make sure this is set to "DNS only"
2. Wait a few minutes and try joining your server with the custom domain from your Minecraft client. It should work! Yes, it's that easy! Please note that DNS records update time depends on each users internet service provider and the domain registrar you chose, so in some cases it can take up to 48 hours for the domain to work for all players but in the majority of cases it only takes a few minutes.
2B: (Optional) Setting up your domain for Java AND Bedrock players [Advanced Method]:
1. Head to your domain registrars DNS record page and create a new SRV record for Java players. This SRV record should match the exact subdomain you entered and verified on the Minehut dashboard in the earlier steps of the guide.
- Record Type: SRV
- Name / Domain Name:
_minecraft._tcp.<yoursubdomain>
(in this example, we useplay
, so it would be_minecraft._tcp.play
) - Priority: 1
- Weight: 1
- Port: 25565
- Target Address:
<servername>.minehut.gg
(Replace<servername>
with the actual name of your Minehut server)
After completing this step, Java players should now be able to join using the domain after waiting a bit for the record to update for all players.
2. Create a CNAME record for Bedrock players. This CNAME record should match the exact subdomain you entered and verified on the Minehut dashboard in the earlier steps of the guide.
- Record Type: CNAME
- Name / Domain Name: The subdomain you verified earlier (in this example,
play
) - Target Address:
<servername>.bedrock.minehut.gg
(Replace<servername>
with the actual name of your Minehut server) - Proxy status (Cloudflare only): Make sure this is set to "DNS only"
After completing this step, Bedrock players should now be able to join using the domain after waiting a bit for the record to update for all players.
⚠️ Make sure that you only use your minehut.gg domain to promote your server within any Minehut channels.
💡 Additional Tips:
- You will want to check your existing domain records and make sure none of them conflict with the new records we are adding in this guide. You don't want duplicate records of the same type for the same subdomain, as it will cause issues.
- You can use https://mcsrvstat.us/ as a helpful troubleshooting tool when setting up your domain, as you can type in your domain and it will see if it's working and tell you if the records are incorrect or missing. You can also use https://mxtoolbox.com/SuperTool.aspx to double check your TXT, SRV and CNAME records.
- Please note that DNS records update time depends on each users internet service provider and the domain registrar you chose, so in some cases it can take up to 48 hours for the domain to work for all players but in the majority of cases it only takes a few minutes.