How to connect a domain with a Minecraft Server (Cloudflare)
Astro
Last Update 2 years ago
With a dedicated IP (default port)
1. Login into the Cloudflare dashboard and select your domain
2. On the left-hand side, Click “DNS” and then click “Add Record”. Firstly, we need to create an “A” record. You will need to fill out the following:
xxxxxxxxxx
Name - This is the option to either make it a subdomain or not. In this example, we will use “play”. This will make it so we have to connect using play.domain.com.
IPv4 Address - This is the IP of the server NOT including the port numbers.
Proxy Status - Uncheck this. It should be a gray cloud with the text “DNS Only”.
TTL - Leave this as auto.

Once complete, Click “Save”.
3. Your domain is now usable. Players are now able to connect to your Minecraft server using the domain.
With a non-dedicated IP (random port)
1. Login into the Cloudflare dashboard and select your domain
2. On the left-hand side, Click “DNS” and then click “Add Record”. Firstly, we need to create an “A” record. You will need to fill out the following:
xxxxxxxxxx
Name - This is the option to either make it a subdomain or not. In this example, we will use “play”. This will make it so we have to connect using play.domain.com.
IPv4 Address - This is the IP of the server NOT including the port numbers.
Proxy Status - Uncheck this. It should be a gray cloud with the text “DNS Only”.
TTL - Leave this as auto.

3. Now we have to create another record. This time an "SRV" record. Select “SRV” under the “Type” dropdown. You will need to fill out the following:
xxxxxxxxxx
Name - This is the first part of the domain that you have chosen before. In this example, we are using “mc”.
Service - Set the service name to _minecraft. This is super important!
Protocol - Leave this as TCP.
TTL - Leave This as Auto.
Priority - Set this to 0.
Weight - Set this to 0.
Port - This is the port of the server. In this example, we will be using port 28017
Target - This is the whole domain name that you have chosen. In this example, the target is going to be play.expanse.host

4. Your domain is now usable. Players are now able to connect to your Minecraft server using the domain.
If you need any further assistance click contact us via tickets