---
title: "Minecraft Server Domain Setup: A and SRV Records | ZCS"
description: "Point a custom domain at your Minecraft server with A and SRV records, plus checks for the DNS problems that stop players from connecting."
url: "https://www.zcraftstudios.com/blog/minecraft-server-dns-srv-record-guide"
updated: "2026-11-02T01:59:09.107096+00:00"
source: "ZCraft Studios"
---

> Site index for AI agents: https://www.zcraftstudios.com/llms.txt (full reference: https://www.zcraftstudios.com/llms-full.txt). Every page is available as Markdown by adding `.md` to its URL or sending `Accept: text/markdown`.

1. [Home](https://www.zcraftstudios.com/)
2. [Blog](https://www.zcraftstudios.com/blog)
3. Minecraft Server Domain Setup: A and SRV Records

[ All posts](https://www.zcraftstudios.com/blog)

# Minecraft Server Domain Setup: A and SRV Records

ZCraft StudiosOct 15, 2026Updated Nov 2, 2026

Point a custom domain at your Minecraft server with A and SRV records, plus checks for the DNS problems that stop players from connecting.

## In this guide

- [The three things your domain must resolve](#the-three-things-your-domain-must-resolve)
- [When an A record is enough](#when-an-a-record-is-enough)
- [When you need SRV](#when-you-need-srv)
- [DNS example](#dns-example)
- [Test in the correct order](#test-in-the-correct-order)
- [Common mistakes](#common-mistakes)
- [Keep the stack secure](#keep-the-stack-secure)
- [How to know the change is finished](#how-to-know-the-change-is-finished)
- [Related guides](#related-guides)
- [Frequently asked questions](#frequently-asked-questions)
- [More guides](#more-guides)

**Quick answer:** Create an A record pointing your domain at the server IP, and add an SRV record for `_minecraft._tcp` if the server uses a port other than 25565 or lives on a different host name.

## The three things your domain must resolve

A custom address such as play.example.com is an alias for a server connection, not a hosting service. The DNS records must ultimately lead to a reachable game endpoint. An A record maps a hostname to an IPv4 address, an AAAA record to IPv6, and an SRV record can tell supported Java clients which hostname and port to use. DNS does not open a firewall or repair a server process that is offline.

## When an A record is enough

If your Java game server is reachable at the default port and has a stable public IPv4 address, an A record for a dedicated hostname is often sufficient. Point `play.example.com` to the address supplied by your host. Do not use a private address such as `192.168.1.5` for friends outside your home network. Check whether the provider uses a proxy or requires a specific endpoint before creating records.

## When you need SRV

Some game hosts allocate a non-default port. An SRV record for Minecraft Java service discovery can reference that port so players enter a clean hostname. An illustrative layout is below. Replace the examples with the actual details from your host and DNS provider, and check provider-specific formatting.

## DNS example

```
A     mc.example.com         -> 203.0.113.10
SRV   _minecraft._tcp.play.example.com
      priority 0  weight 5  port 25580  target mc.example.com
```

`203.0.113.10` is a reserved documentation address, not a server you can connect to. SRV targets should resolve to valid host addresses; an SRV record is not a substitute for configuring the game listener. If your DNS service has separate name, priority, weight, port and target fields, enter them separately.

## Test in the correct order

1. Confirm the host's direct IP or assigned hostname and port work in the Minecraft client.
2. Check that the A/AAAA record returns the intended address.
3. If you use an SRV record, check its service name, target and port.
4. Join with the custom hostname, then repeat after a server restart.
5. If the IP works but the name fails, focus on DNS instead of adding plugins.

## Common mistakes

An SRV record whose target does not resolve, using a website-only proxy on a game hostname, mapping a domain to the wrong host allocation, or expecting a DNS change to take effect instantly can all break the address. Records are cached according to TTLs; don't assume every resolver refreshes at the same moment. A domain might also point to old hosting infrastructure after migration.

## Keep the stack secure

A custom domain does not replace authentication, an allowlist or a network firewall. If you run a proxy network, backend servers must not accept untrusted direct player connections. Keep panel and database endpoints separate from the public game hostname.

## How to know the change is finished

The custom hostname resolves correctly, a normal player can join without typing a special port when intended, reconnects work after restart, and no alternate DNS record sends clients to a stale server. Record where the DNS is managed so the next maintainer can fix it.

## Related guides

- [Connection Refused Troubleshooting](https://www.zcraftstudios.com/blog/minecraft-server-connection-refused-fix)
- [Port 25565 Not Working](https://www.zcraftstudios.com/blog/minecraft-server-port-25565-not-working)
- [Velocity Proxy Setup](https://www.zcraftstudios.com/blog/velocity-proxy-network-setup)

## Frequently asked questions

**Do I need an SRV record?** Only for a non-default port or when you want to point to a different host name.

**Why does my domain not work?** DNS changes can take time, and the A record or SRV target may be wrong.

**Can I use a domain with a proxy?** Yes. Point it at the proxy.

## More guides

- [Setting Up ViaVersion for Cross-Version Compatibility](https://www.zcraftstudios.com/blog/viaversion-cross-version-setup)
- [Velocity Modern Forwarding Setup and Security Checklist](https://www.zcraftstudios.com/blog/velocity-modern-forwarding-setup-checklist)
- [Velocity vs. BungeeCord vs. Waterfall: Choosing a Proxy](https://www.zcraftstudios.com/blog/velocity-vs-bungeecord-vs-waterfall-comparison)
- [SQLite vs MySQL for Minecraft Plugins: Which to Choose](https://www.zcraftstudios.com/blog/minecraft-server-plugin-database-sqlite-vs-mysql)
- [Does Your Minecraft Server Need Multiple Languages?](https://www.zcraftstudios.com/blog/minecraft-server-languages)

[ Previous guide Move a Minecraft Server to a New Host Safely](https://www.zcraftstudios.com/blog/minecraft-server-move-host-without-losing-world)[ Next guide Minecraft Can't Keep Up Warning: Causes and Fixes](https://www.zcraftstudios.com/blog/minecraft-server-cant-keep-up-warning-fix)

<script type="application/ld+json">{"@context":"https://schema.org","@type":"Organization","@id":"https://www.zcraftstudios.com/#organization","name":"ZCraft Studios","alternateName":["ZCS","ZCraft","ZCraftStudios"],"logo":{"@type":"ImageObject","url":"https://www.zcraftstudios.com/favicon-192.png","width":192,"height":192},"image":{"@type":"ImageObject","url":"https://www.zcraftstudios.com/favicon-192.png","width":192,"height":192},"url":"https://www.zcraftstudios.com","description":"ZCraft Studios (ZCS) creates Minecraft plugins, server configs and tools. Browse resources, compatibility details and setup guides.","email":"Support@zcraftstudios.com","slogan":"Minecraft resources, configurations and custom server development.","knowsAbout":["Minecraft plugins","Minecraft server configuration","Java plugin development","Minecraft server optimization"],"sameAs":["https://dsc.gg/zcraftstudios","https://x.com/ZCraftNetwork","https://www.youtube.com/@zcraft_studios","https://www.instagram.com/ZCraftStudios"],"contactPoint":[{"@type":"ContactPoint","contactType":"customer support","email":"Support@zcraftstudios.com","availableLanguage":["English"],"areaServed":"Worldwide"}]}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebSite","@id":"https://www.zcraftstudios.com/#website","url":"https://www.zcraftstudios.com","name":"ZCraft Studios","alternateName":["ZCS","ZCraft"],"description":"ZCraft Studios (ZCS) creates Minecraft plugins, server configs and tools. Browse resources, compatibility details and setup guides.","inLanguage":"en","publisher":{"@type":"Organization","@id":"https://www.zcraftstudios.com/#organization","name":"ZCraft Studios","url":"https://www.zcraftstudios.com"}}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","@id":"https://www.zcraftstudios.com/blog/minecraft-server-dns-srv-record-guide#article","headline":"Minecraft Server Domain Setup: A and SRV Records","url":"https://www.zcraftstudios.com/blog/minecraft-server-dns-srv-record-guide","mainEntityOfPage":"https://www.zcraftstudios.com/blog/minecraft-server-dns-srv-record-guide","isPartOf":{"@type":"WebSite","@id":"https://www.zcraftstudios.com/#website","name":"ZCraft Studios","url":"https://www.zcraftstudios.com"},"speakable":{"@type":"SpeakableSpecification","cssSelector":["h1","main"]},"description":"Point a custom domain at your Minecraft server with A and SRV records, plus checks for the DNS problems that stop players from connecting.","datePublished":"2026-10-15T15:15:40.040656+00:00","dateModified":"2026-11-02T01:59:09.107096+00:00","author":{"@type":"Organization","@id":"https://www.zcraftstudios.com/#organization","name":"ZCraft Studios","url":"https://www.zcraftstudios.com/about"},"publisher":{"@type":"Organization","@id":"https://www.zcraftstudios.com/#organization","name":"ZCraft Studios","url":"https://www.zcraftstudios.com","logo":{"@type":"ImageObject","url":"https://www.zcraftstudios.com/favicon-192.png","width":192,"height":192}},"inLanguage":"en","image":"https://www.zcraftstudios.com/api/og/blog/minecraft-server-dns-srv-record-guide?v=1ebqrb3"}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.zcraftstudios.com/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https://www.zcraftstudios.com/blog"},{"@type":"ListItem","position":3,"name":"Minecraft Server Domain Setup: A and SRV Records","item":"https://www.zcraftstudios.com/blog/minecraft-server-dns-srv-record-guide"}]}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Do I need an SRV record?","acceptedAnswer":{"@type":"Answer","text":"Only for a non-default port or when you want to point to a different host name."}},{"@type":"Question","name":"Why does my domain not work?","acceptedAnswer":{"@type":"Answer","text":"DNS changes can take time, and the A record or SRV target may be wrong."}},{"@type":"Question","name":"Can I use a domain with a proxy?","acceptedAnswer":{"@type":"Answer","text":"Yes. Point it at the proxy."}}]}</script>
