Blog
How to Connect a Domain to Your Minecraft Server
Mar 8, 2026 64 views
Using a custom domain for your Minecraft server makes it much easier for players to join. Instead of sharing a long IP address, you can let players connect using something simple like play.yourdomain.com.
In this guide, we will show you how to:
- Buy a domain from Vimex
- Connect the domain to Cloudflare
- Create the correct DNS and SRV records for your Minecraft server
1. Buy a Domain from Vimex
First, you need to register a domain.
- Go to the Vimex website.
- Search for the domain name you want.
- If the domain is available, add it to your cart.
- Complete the checkout and register the domain.
Once the purchase is completed, the domain will appear in your Vimex control panel.
2. Add Your Domain to Cloudflare
Cloudflare helps manage your DNS and provides additional security and performance.
- Go to the Cloudflare dashboard.
- Click Add a Site.
- Enter your domain name.
- Select the Free plan (this is usually enough for most servers).
- Continue until Cloudflare shows you the nameservers.
Cloudflare will give you two nameservers that look like this:
abby.ns.cloudflare.com tom.ns.cloudflare.com
Keep these open, as you will need them in the next step.
3. Change the Nameservers at Vimex
Now you need to connect your domain to Cloudflare.
- Log in to your Vimex control panel.
- Find the domain you purchased.
- Open the Nameserver settings.
- Replace the existing nameservers with the ones Cloudflare provided.
Example:
abby.ns.cloudflare.com tom.ns.cloudflare.com
Save the changes.
⚠️ Important:
Updating nameservers can take some time. DNS changes usually propagate within a few minutes to a few hours, but in some cases it can take up to 24 hours before everything works globally.
4. Create an A Record for Your Server
Once Cloudflare is active, you need to create a DNS record pointing to your server.
- Open your Cloudflare dashboard.
- Go to DNS.
- Click Add record.
Create an A record:
| Type | Name | IPv4 Address |
|---|---|---|
| A | play | YOUR_SERVER_IP |
Example:
Type: A Name: play IP: 142.132.137.218
Disable the Cloudflare proxy (DNS only) if you are using it for Minecraft.
Now players could already connect using:
play.yourdomain.com
But if your Minecraft server uses a different port than 25565, you will need an SRV record.
5. Create an SRV Record
SRV records allow players to join without specifying a port.
In Cloudflare:
- Click Add record
- Select SRV
- Enter the following settings
| Setting | Value |
|---|---|
| Service | _minecraft |
| Protocol | _tcp |
| Name | play |
| Priority | 0 |
| Weight | 5 |
| Port | 25607 |
| Target | play.yourdomain.com |
Example:
Service: _minecraft Protocol: _tcp Name: play Priority: 0 Weight: 5 Port: 25607 Target: play.yourdomain.com
This tells Minecraft where your server is located and which port it uses.
6. Test Your Domain
Once everything is configured and DNS has updated, players should be able to join your server using:
play.yourdomain.com
If it does not work immediately, wait a bit for DNS to update and try again later.
Conclusion
Using a domain for your Minecraft server makes it easier for players to remember and join your server. By registering a domain with Vimex, connecting it to Cloudflare, and creating the correct DNS and SRV records, you can quickly set up a professional-looking server address.