How to connect a domain with a Minecraft Server (Cloudflare)
Using your domain to connect to your server looks more professional and encourages people to join.
Learn how to connect a domain with a Minecraft Server using Cloudflare.
Login into the Cloudflare dashboard and select your domain

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:
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”.

Your domain is now usable. Players are now able to connect to your Minecraft server using the domain.

Please note that this method will not work with Minecraft Bedrock. You will need to include the port when connecting to the server, or get a dedicated IP for your Minecraft Bedrock server.
Login into the Cloudflare dashboard and select your domain

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:
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.

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:
Name - In this part as we have used the name “mc” we have to use the minecraft service and the protocol, it would look like this: _minecraft._tcp.mc
Priority - Set this to 0.
Weight - Set this to 0.
TTL - Leave This as Auto.
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 mc.sparked.xyz
The end result should look similar to the following screenshot:

Your domain is now usable. Players are now able to connect to your Minecraft server using the domain.

If you require any further assistance, please create a ticket here.
Created By: Greg K.
Learn how to connect a domain with a Minecraft Server using Cloudflare.
How to connect a domain with a Minecraft Server with a dedicated IP (Cloudflare)
Login into the Cloudflare dashboard and select your domain

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:
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”.

Your domain is now usable. Players are now able to connect to your Minecraft server using the domain.

How to connect a domain with a Minecraft Server without a dedicated IP (Cloudflare)
Please note that this method will not work with Minecraft Bedrock. You will need to include the port when connecting to the server, or get a dedicated IP for your Minecraft Bedrock server.
Login into the Cloudflare dashboard and select your domain

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:
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.

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:
Name - In this part as we have used the name “mc” we have to use the minecraft service and the protocol, it would look like this: _minecraft._tcp.mc
Priority - Set this to 0.
Weight - Set this to 0.
TTL - Leave This as Auto.
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 mc.sparked.xyz
The end result should look similar to the following screenshot:

Your domain is now usable. Players are now able to connect to your Minecraft server using the domain.

If you require any further assistance, please create a ticket here.
Created By: Greg K.
Updated on: 01/10/2024
Thank you!