# How to configure domain on Cloudflare

#### **Make sure to have purchased a domain with your registrar.**

#### **1. A Record**

When on Cloudflare, on the left you got a sidebar, click on DNS and then go to "Records"

[![Cloduflare1.webp](https://help.alienhost.net/uploads/images/gallery/2024-01/scaled-1680-/cloduflare1.webp)](https://help.alienhost.net/uploads/images/gallery/2024-01/cloduflare1.webp)

Then create your A record

In the "**type**" box select "**A**"

In the "**Name**" slot you can put numbers, letters or "**@**"

You may be wondering what is the name slot, we can say it's your domain prefix.

**Example**: I own Example.net, if I set "name" to **play** I have to put play.example.net to join my minecraft server

Else, if I put @ in there, I can join with example.net

In "**IPv4**" slot you will put your server's numerical ip

You may be wondering "how do I find it, it's showing a subdomain" to which I will answer with: there is [this tutorial](https://help.alienhost.net/books/guides/page/how-to-get-numeric-ipv4)

[![Cloudflare2.webp](https://help.alienhost.net/uploads/images/gallery/2024-01/scaled-1680-/cloudflare2.webp)](https://help.alienhost.net/uploads/images/gallery/2024-01/cloudflare2.webp)

#### **2. SRV Record**

<p class="callout info">You may want to set this up if your port is **not** <span style="text-decoration: underline;">25565</span></p>

Create a second record

Make sure the "Type" is SRV and not A

In the "name" slot you use the following line: **\_minecraft.\_tcp.** followed by your subdomain or domain if you are going to use one (in the picture below, the subdomain is **myserver**)

"**TTL**" should be "**Auto**"

"**Priority**" should be a low number e.g. 0 or 1

"**Weight**" should be below 5

"**Port**" is your server port, which can be found [in the console](https://help.alienhost.net/books/panel/page/overview)

**"Target"** has to be set to your domain/alias shown in the panel (view picture below for an example)

[![image.png](https://help.alienhost.net/uploads/images/gallery/2024-11/scaled-1680-/LdUimage.png)](https://help.alienhost.net/uploads/images/gallery/2024-11/LdUimage.png)