> ## Documentation Index
> Fetch the complete documentation index at: https://docs.highmark.it/llms.txt
> Use this file to discover all available pages before exploring further.

# DNS Configuration for Minecraft

> How to correctly configure DNS records to connect your domain to the Minecraft server.

Do you want players to join with `play.myserver.it` instead of `192.168.1.5:25565`? You need to configure DNS.

### **Basic Concepts**

* **Domain**: The name of your site (e.g., `myserver.it`).
* **A Record**: Connects a name to a numeric IP address (IPv4).
* **SRV Record**: Specifies the port of a service (useful if you don't use the standard port 25565).

### **Case 1: You have a Dedicated IP and Standard Port (25565)**

This is the simplest case. If your server has IP `1.2.3.4` and uses port `25565`.

1. Go to your domain's DNS management (Cloudflare, Namecheap, etc.).
2. Create an **A Record**:
   * **Name (Host):** `play` (or `@` if you want to use the main domain directly).
   * **Content (Value):** `1.2.3.4`
   * **TTL:** Auto.

Now players can join with `play.myserver.it`.

### **Case 2: NON-Standard Port (e.g., 25577)**

If your server is on `1.2.3.4:25577`, a simple A Record is not enough (A records don't manage ports). You have two options.

#### **Option A: SRV Record (Recommended)**

Allows hiding the port, so players just type the domain.

1. Create the **A Record** as above (e.g., `play` -> `1.2.3.4`).
2. Create an **SRV Record**:
   * **Name:** `_minecraft._tcp.play` (note: if the A record was `play`, put `play` here. If it was `@`, put only `_minecraft._tcp`).
   * **Priority:** 0
   * **Weight:** 5
   * **Port:** 25577 (your port).
   * **Target:** `play.myserver.it` (the A record you created earlier).

#### **Option B: Players type the port**

If you only create the A Record, players will have to type `play.myserver.it:25577`. It works, but it's less elegant.

### **Configuration on Cloudflare**

If you use Cloudflare:

* For records pointing to a Minecraft server, **disable the proxy** (the orange cloud must be **Gray/DNS Only**).
* Cloudflare's proxy (orange cloud) works only for websites (HTTP/HTTPS), not for Minecraft, unless you use Cloudflare Spectrum (Enterprise service).

### **Verification**

After saving, wait a few minutes (or hours) for DNS propagation.
You can check if it works by opening the terminal (CMD) and typing:
`ping play.myserver.it`
It should return your IP address.

<Note>
  Guide created by HighMark - All information and contacts on my [official website: Highmark.it](https://highmark.it/)
</Note>
