Want to make your Minecraft server more professional and easier to remember? Setting up a custom domain for your Minecraft server lets players connect using an address like "play.yourdomain.com" instead of a complicated IP and port number. This step-by-step guide will show you exactly how to connect your domain to your Minecraft server using Cloudflare's DNS management, making your server more accessible and professional-looking.
Before diving into the setup, you need to make sure you actually own a domain and have it managed by Cloudflare. If you haven't done this yet, you will need to purchase your domain directly through Cloudflare's domain registrar. Once your domain is purchased and active in your Cloudflare account, you can move on to the next steps!
Step 1: Get Your Minecraft Server Details
- Log into your MintServers game panel.
- Click on Subdomain in the left sidebar.
- On the right side, find the How to connect a domain column.
- Note down the Address (target) and Port values. You will need these for Cloudflare!
Step 2: Create an SRV Record in Cloudflare
- In your Cloudflare dashboard, select your domain.
- Click on DNS in the left sidebar.
- Click Add Record.
- Select SRV as the record type.
- For the Name field, enter
_minecraft._tcp.play(Replace "play" with whatever subdomain you want your players to type). - Set Priority to 1.
- Set Weight to 1.
- Set Port to the port number you copied from your server details.
- Set Target to the Address (target) you copied from your server details.
- Click Save.
Testing Your Domain Connection
After setting up your DNS records, it may take a few minutes to several hours for the changes to propagate across the internet. To test if your domain is properly connected:
- Open Minecraft Java Edition.
- Go to Multiplayer, then Add Server.
- Enter your new domain (e.g., play.yourdomain.com) in the Server Address field.
- Click Done and try to connect to your server!
🛠️ Troubleshooting Common DNS Issues
- Can't connect to the server: Verify that your SRV record is correctly configured with the right target and port. Sometimes it just takes time, so wait up to 24 hours for full DNS propagation.
- The Sneaky Trailing Dot: If you are using a manual zone file entry or a provider other than Cloudflare, ensure your target address ends with a period (e.g.,
ultra.eu.2.mintservers.com.). Without this trailing dot, some systems will incorrectly append your domain name to the end of the target, breaking the connection! - Flush your DNS cache: If you recently changed the records, your computer might be caching old data. Open your Command Prompt on Windows and type
ipconfig /flushdnsto clear it out. - SRV record format: Double-check the format of your SRV record name. It must be exactly
_minecraft._tcp.yoursubdomainto work properly. - Server offline: Ensure your Minecraft server is actually running on the MintServers panel and is accessible via its direct numerical IP first!
By following this guide, you have successfully connected your domain to your Minecraft server using Cloudflare. Players can now join your server using your custom domain, making it more professional and easier to remember. If you encounter any stubborn issues getting the records to save, no worries! Just open a support ticket and our team will gladly jump in and take a look.