---
title: "Custom domain for a Minecraft server: DNS and SRV | StreetHosting"
description: "Point your own domain (play.seudominio.com.br) at a Minecraft server with an SRV record, step by step in Cloudflare's new DNS records page."
url: "https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain"
type: "page"
language: "en-US"
---

Minecraft · 4 min · Intermediate

Published on Jun 9, 2026 · Updated on Oct 10, 2026

# Custom domain for your Minecraft server

A numeric IP works, but your own domain builds trust and makes a future migration easier. The trick is the SRV record on the right port, and Cloudflare's new dashboard changed where each field lives.

By [Equipe StreetHosting](https://streethosting.com.br/en/autores#equipe-streethosting) · StreetHosting infrastructure and support team

[Network, DNS and domains](https://streethosting.com.br/en/guides/topics/networking)

Summarize with:

[](https://chat.openai.com/?q=Summarize%20the%20key%20points%20of%20this%20StreetHosting%20guide%3A%20https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fminecraft%2Fminecraft-custom-domain.%20Highlight%20the%20step-by-step%20instructions%2C%20the%20prerequisites%20and%20the%20most%20common%20mistakes. "ChatGPT") [](https://claude.ai/new?q=Summarize%20the%20key%20points%20of%20this%20StreetHosting%20guide%3A%20https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fminecraft%2Fminecraft-custom-domain.%20Highlight%20the%20step-by-step%20instructions%2C%20the%20prerequisites%20and%20the%20most%20common%20mistakes. "Claude") [](https://www.google.com/search?udm=50&aep=11&q=Summarize%20the%20key%20points%20of%20this%20StreetHosting%20guide%3A%20https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fminecraft%2Fminecraft-custom-domain.%20Highlight%20the%20step-by-step%20instructions%2C%20the%20prerequisites%20and%20the%20most%20common%20mistakes. "Google AI Mode") [](https://x.com/i/grok?text=Summarize%20the%20key%20points%20of%20this%20StreetHosting%20guide%3A%20https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fminecraft%2Fminecraft-custom-domain.%20Highlight%20the%20step-by-step%20instructions%2C%20the%20prerequisites%20and%20the%20most%20common%20mistakes. "Grok") [](https://www.perplexity.ai/search/new?q=Summarize%20the%20key%20points%20of%20this%20StreetHosting%20guide%3A%20https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fminecraft%2Fminecraft-custom-domain.%20Highlight%20the%20step-by-step%20instructions%2C%20the%20prerequisites%20and%20the%20most%20common%20mistakes. "Perplexity")

Share:

[](https://x.com/intent/tweet?text=Custom%20domain%20for%20a%20Minecraft%20server%3A%20DNS%20and%20SRV&url=https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fminecraft%2Fminecraft-custom-domain "Share on X") [](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fminecraft%2Fminecraft-custom-domain "Share on Facebook") [](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fminecraft%2Fminecraft-custom-domain "Share on LinkedIn") [](https://wa.me/?text=Custom%20domain%20for%20a%20Minecraft%20server%3A%20DNS%20and%20SRV%20https%3A%2F%2Fstreethosting.com.br%2Fen%2Fguides%2Fminecraft%2Fminecraft-custom-domain "Share on WhatsApp")

For agents: Copy as Markdown [.md](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain.md)

In this guide 5 sections

* [Why use a domain](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#por-que-usar-dominio)
* [A record](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#registro-a)
* [SRV record](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#registro-srv)
* [Cloudflare's new dashboard](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#cloudflare-novo-painel)
* [Future migration](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#migracao-futura)

Quick answer

To use a **custom domain** on Minecraft Java, create an **SRV record** with the name `_minecraft._tcp.play`, the server port and, as the target, the server address. In Cloudflare's new dashboard the whole name goes into a single field (Name), and Priority, Weight, Port and Target each have their own field. If the server only has a numeric IP, create an **A record** first and use that name as the target.

## Why use a domain[](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#por-que-usar-dominio)

Your own domain signals permanence. Communities that plan to grow avoid handing out an IP that changes with every host migration. It also makes promotional material easier: banners, Discord and videos all use the same memorable address. If you still connect by IP, see [how to connect by IP](https://streethosting.com.br/en/guides/minecraft/connect-to-minecraft-server-by-ip).

## A record[](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#registro-a)

The target of an SRV record has to be a name, never a numeric IP. So the A record is only needed in one case: when the address shown in the [StreetHosting](https://streethosting.com.br/en/minecraft-facil) control panel is an IP. In that case, create an A record for play.seudominio.com.br pointing to that IP. In Cloudflare, leave Proxy status on DNS only.

If the address is already a name, such as `br-xxx-00.streethosting.com.br:25677`, skip this part. That name goes straight into the Target field of the SRV record and the port goes into the Port field.

## SRV record[](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#registro-srv)

### What goes in each field

| Field    | What to enter                                                                                                                          |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| Name     | \_minecraft.\_tcp.play (or just \_minecraft.\_tcp to use the domain with no subdomain)                                                 |
| Priority | 0                                                                                                                                      |
| Weight   | 0                                                                                                                                      |
| Port     | The server port from the StreetHosting control panel, for example 25677                                                                |
| Target   | The server address without the port, for example br-xxx-00.streethosting.com.br, or play.seudominio.com.br if you created the A record |
| TTL      | Auto                                                                                                                                   |

Priority and Weight only matter when several SRV records exist for the same name. With a single server, zero in both does the job.

Other DNS providers may split the form into Service (\_minecraft), Protocol (\_tcp) and Name (play). The result is the same record.

## Step by step in Cloudflare's new dashboard[](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#cloudflare-novo-painel)

Cloudflare replaced its DNS records page in 2026. The table shows the columns Name, Type, Content, Proxy status, TTL, Tags and Comment, and the edit form opens right below the record's row.

1. Sign in to the Cloudflare dashboard, pick the domain and open **DNS** and then **Records**.
2. Select **Add record** and choose **SRV** in the Type field.
3. In **Name**, type `_minecraft._tcp.play`. The dashboard completes it with your domain.
4. Enter 0 in **Priority** and 0 in **Weight**.
5. In **Port**, type the server port.
6. In **Target**, paste the server address without the port.
7. Leave **TTL** on Auto and select **Save**.

After saving, the row shows up in the table with the SRV type and the Content column in the format weight, port and target:

`0 25677 br-xxx-00.streethosting.com.br`

The Proxy status column shows DNS only and has no switch to change it: Cloudflare only proxies A, AAAA and CNAME records. To change the port or the target later, select Edit on the record's row. The form opens with the Save, Cancel and Delete buttons. Record Attributes holds the comment and tags, which are optional.

Following an older tutorial that asks for separate Service and Protocol fields? They do not exist in the new dashboard. The service and the protocol are written at the start of the Name field.

### How to test

On Windows, open the Command Prompt and run:

`nslookup -type=SRV _minecraft._tcp.play.seudominio.com.br`

The answer has to show the port and the target you saved. Cloudflare's Auto TTL is 5 minutes, so the change usually shows up quickly. Then, in Minecraft, add the server with just play.seudominio.com.br, without the port.

## Future migration[](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#migracao-futura)

1. Buy the new plan and note down the temporary address.
2. Move the world following the hosting transfer guide.
3. Update the A record to the new IP, or the Target and port of the SRV record if it points straight at the server address.
4. Announce it on Discord; the domain stays the same for players.

Migration details are in [how to move a world to another host](https://streethosting.com.br/en/guides/minecraft/move-minecraft-world-to-another-host). To invite friends after setting up the domain, use [how to invite friends](https://streethosting.com.br/en/guides/minecraft/invite-friends-to-minecraft-server).

In this guide

* [Why use a domain](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#por-que-usar-dominio)
* [A record](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#registro-a)
* [SRV record](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#registro-srv)
* [Cloudflare's new dashboard](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#cloudflare-novo-painel)
* [Future migration](https://streethosting.com.br/en/guides/minecraft/minecraft-custom-domain#migracao-futura)

## Frequently asked questions

Do I need an SRV record if the port is 25565?

If the port is the default 25565, some clients connect with just an A record. An SRV record still helps when the port is custom and makes a migration cleaner.

Where are the service and protocol fields in Cloudflare's new dashboard?

The new dashboard has no separate fields for them. Type everything into the Name field, in the format \_minecraft.\_tcp.play, and fill in Priority, Weight, Port and Target in their own fields.

Does the orange Cloudflare proxy work with Minecraft?

No. Cloudflare's proxy forwards website traffic, not game traffic. Leave the server's A record with Proxy status set to DNS only. The SRV record always stays on DNS only.

Does the SRV record work on Minecraft Bedrock?

No. Only Minecraft Java looks up the SRV record. On Bedrock the player types the address and the port in separate fields, so point an A or CNAME record at the server and give out the port.

Can I change hosts without losing the domain?

Yes. Update the A record to the new IP, or the Target and port of the SRV record if it points straight at the server address. Players keep joining through the same friendly address.

## Related guides

[Minecraft Beginner How to connect to a Minecraft server by IP Connecting by IP is easy once you know the right address, port and version. This guide walks through the process for Java and Bedrock without the hassle. 2 min Read guide](https://streethosting.com.br/en/guides/minecraft/connect-to-minecraft-server-by-ip) [Minecraft Beginner How to move a Minecraft world to another host Switching hosts does not mean starting over. With a backup, the right order and a test run before you reopen, you can move your world and configs safely. 2 min Read guide](https://streethosting.com.br/en/guides/minecraft/move-minecraft-world-to-another-host) [Minecraft Beginner How to invite friends to your Minecraft server Once the server is online, inviting friends means copying an address and sending it in the chat. No opening ports on your modem and no VPN to install. 3 min Read guide](https://streethosting.com.br/en/guides/minecraft/invite-friends-to-minecraft-server)

[← Back to the Guide Center](https://streethosting.com.br/en/guides)
