Minecraft Server Domain Setup: A Step-by-Step Guide

Want a friendlier address players can type without memorizing an IP?

This brief guide shows how a readable host like mc.yourdomain.tld routes players to your game. You will learn which DNS entries map a hostname to your host IP and when an SRV record is required for custom ports.

The default port for Minecraft is 25565. If you keep that port, a simple A record often suffices. Use an SRV record when your service runs on a non-default port so clients contact the right address and port combination.

Examples use Namecheap, Name.com, and IONOS, with exact field values rather than screenshots. Expect most changes to appear within minutes, though global propagation can take longer.

By the end, you’ll have a clean connection string like mc.yourdomain.tld that hides the numeric IP and makes sharing easy. For provider-specific notes and a practical reference, see DNS setup for a game host.

Key Takeaways

  • Use an A record to point a hostname at your host IP for default ports.
  • Add an SRV record when the service uses a custom port so clients find the right port.
  • Namecheap, Name.com, and IONOS provide guided DNS tools for record creation.
  • Expect quick local updates; global DNS propagation may take longer.
  • Result: a memorable host like mc.yourdomain.tld that hides the raw IP.

Before You Start: What You Need and How DNS Routes Minecraft Traffic

Plan a quick checklist before editing DNS so changes go smoothly.

Requirements:

  • Public IPv4 address for your host.
  • Open port 25565 by default, or your custom port.
  • Login access to the registrar or hosting account where DNS records live.

Finding IP and port on IONOS

On IONOS, locate the instance IP under Server & Cloud. Check open ports under Network > Firewall Policies. Note both values before editing DNS records.

What A and SRV records do

An A record maps a simple host label like mc to an IPv4 address so the domain name system resolves your chosen subdomain to physical hardware.

An SRV record gives the client the service and protocol plus the port and target hostname. Use an SRV when your port is not the default. Key SRV fields are Service (_minecraft), Protocol (_tcp), Target (your A-record hostname), Port, Priority, Weight, and TTL.

“Use a subdomain like mc.yourdomain.tld to keep services tidy and avoid conflicts.”

Item Typical Value Notes
Service _minecraft Specifies the game protocol
Protocol _tcp TCP is used for client connections
Port 25565 (default) Use SRV if different
TTL 300–3600 Lower for faster updates during changes

How to add domain name to minecraft server

Using a short subdomain makes the connection string easier to share and remember.

Create the A record

Map a label (mc or @ for the bare domain) to your public IP. Set the Host/Hostname to the chosen label and point the Value or Directs field to the server IP.

Choose a low TTL while testing so changes appear quickly. Click the Add Record or Save button in your provider account when finished.

Create the SRV record

When the port is not 25565, create an SRV that includes Service (_minecraft), Protocol (_tcp or _tcp.sub), Priority (0), Weight (5), Port (your listener), and Target (the A-record hostname).

Make sure the Target exactly matches an existing A record (example: mc.example.com). Use a short TTL during setup.

A sleek, modern website displaying a subdomain for a Minecraft server, featuring a clean, minimalist design with a focus on the "mc" prefix. The foreground showcases the subdomain name in a bold, legible font, with subtle 3D depth and light reflections. The middle ground includes a simplified wireframe diagram of a server infrastructure, hinting at the technical aspects. The background sets a serene, neutral tone with soft gradients and a hint of atmospheric lighting, conveying a sense of professionalism and functionality. The overall composition strikes a balance between visual appeal and technical relevance, suitable for illustrating a Minecraft server domain setup guide.

Bare domain vs subdomain

Use a subdomain like mc.yourdomain.tld for clarity and fewer conflicts. Reserve the bare domain if the whole domain exists solely for the game address.

Provider examples and timing

  • Name.com: My Domains > Manage DNS Records. Add an A (Host=mc, Answer=IP) then an SRV (Service=minecraft, Protocol=tcp.mc, Port=25565, Target=mc.example.com, TTL=300). Changes usually appear within an hour.
  • Namecheap: For a bare domain use Host=@ for A; for a subdomain use Host=mc. SRV entries use Service _minecraft and Protocol _tcp or _tcp.mc. Save All Changes; expect ~30 minutes.
  • IONOS: Add A with Hostname set, then SRV with Service minecraft and Protocol TCP. Use minimal TTL for faster propagation.

If you prefer a guided walkthrough, see this Namecheap support article: link the domain.

Verify, Troubleshoot, and Optimize Your Minecraft Domain Setup

Quick verification cuts guessing and gets players online fast.

Test in the client: Launch Minecraft, open Multiplayer > Add Server, enter your subdomain (for example, mc.yourdomain.tld) as the Server Address, and try to join. A successful connect proves your A and SRV records resolve and the port is reachable.

A serene home office setup, with a sleek desktop computer displaying a Minecraft server management interface. The screen is the focal point, surrounded by a tidy workspace - a sturdy oak desk, a comfortable ergonomic chair, and tasteful decor elements like a potted plant and a framed landscape print. Soft, even lighting from a floor lamp and a large window create a tranquil, productivity-enhancing atmosphere. The overall scene conveys a sense of thoughtful organization and attention to detail, reflecting the meticulous process of verifying, troubleshooting, and optimizing a Minecraft server domain setup.

Common fixes include ensuring the SRV target points at a hostname with an A record, matching the SRV Port to the server listener, and confirming Protocol is _tcp with Service _minecraft.

  • Check for missing A records, wrong port values, or typos in hostname fields.
  • Allow TTL propagation: Namecheap ~30 minutes, Name.com up to an hour (sometimes 24 hours).
  • Use DNS lookup tools to verify A and SRV entries and confirm Priority 0 and Weight 5 values.

Best practices: keep a clear subdomain like mc, document records and account details, then raise TTL after testing to stabilize caching and reduce queries.

“Verify DNS entries, match ports, and document settings for consistent, repeatable setups.”

Conclusion

Finish by confirming the A record points at your public IP and that any SRV entry uses the exact target hostname and port. Check each value and field, then test the address in the client. A correct setup yields a clean minecraft server address for players.

Remember: use an SRV when you run on a non-25565 port. If you keep the default, a single A record often suffices. Document each name and all records while testing.

Propagation varies: Namecheap is often ~30 minutes, Name.com about an hour (rarely 24), and IONOS supports minimal TTL for faster checks. Provider menus differ, but Service, Protocol, Target, Port, Priority and Weight are the same across domains.

Keep a changelog of record edits, raise TTL after validation, and re-test in the game if the first try fails. A friendly address reduces friction when inviting friends.

FAQ

What do I need before setting up a Minecraft server hostname?

You need the server IP address, open game port (default 25565 or your custom port), and DNS management access for your registrar or hosting provider. Also confirm your server is running and reachable from the internet so DNS testing works immediately.

How do A and SRV records route Minecraft traffic?

An A record maps a hostname (for example, mc.example.com) to the server IP address. An SRV record points a service label like _minecraft._tcp to a target hostname and port when using a nonstandard port. Clients read the SRV record first and then resolve the target’s A record to get the IP.

How is an A record created for a Minecraft host?

Create an A record in your DNS panel, choose a hostname or subdomain (mc, play, or @ for the root), and enter the server IPv4 address. Set TTL to a moderate value (e.g., 300–3600 seconds) and save or apply the change. The A record provides the base address that SRV records can reference.

What fields are required for an SRV record for a game server?

For Minecraft use: Service (_minecraft), Protocol (_tcp), Name or Service field (often the subdomain or @), Target (the hostname with a valid A record), Port (server port), Priority, Weight, and TTL. Save the SRV record after filling each field correctly so clients can discover the port and host.

Should I use a bare domain or a subdomain for the server?

A subdomain like mc.example.com is clearer and avoids interfering with website records on the root domain. Use the bare domain only if you intend the site and server to share the same hostname and you understand the DNS implications.

Can you give provider examples for creating these records?

Popular providers include Name.com, Namecheap (BasicDNS, PremiumDNS, FreeDNS), and IONOS. Each control panel has a DNS Records or DNS Zone menu and an Add Record button; select A or SRV, fill the fields described earlier, then save.

When is an SRV record required versus the default port 25565?

If your server runs on the default port 25565, players can connect using the hostname alone without an SRV record. If you host on a custom port or multiple services share one IP, create an SRV record so players can connect using the plain hostname while the SRV points to the custom port.

How long does TTL and propagation usually take?

TTL values control caching; common settings are 300–3600 seconds. Changes can propagate in minutes but may take up to 24–48 hours depending on caches. Always click Save or Apply after edits and allow time for DNS caches to refresh.

What is a concrete SRV example for Minecraft?

Example fields: Service = _minecraft, Protocol = _tcp, Name = mc (or @), Target = mc.example.com, Port = 25566 (custom), Priority = 0, Weight = 5, TTL = 3600. Ensure mc.example.com has an A record pointing to the server IP.

How do I verify the server address in the Minecraft client?

In Minecraft launch the client, go to Multiplayer > Add Server, and enter your hostname (for example mc.example.com). If an SRV record exists, the client reads it and connects using the correct port; otherwise it uses 25565 by default.

What are common DNS setup errors and fixes?

Typical issues: missing A record for the SRV target, SRV target using an IP instead of a hostname, wrong port in the SRV record, or mismatched host/target names. Fixes include creating the proper A record, updating SRV target to a hostname, and double-checking port and spelling.

What best practices improve reliability and clarity?

Use a clear subdomain like mc or play, document records in a simple spreadsheet, keep TTLs reasonable for planned changes, and use consistent naming. Back up DNS zone settings and verify with dig or online DNS tools after saving changes.

0
1 0 Rating
2 0 Rating
3 0 Rating
4 0 Rating
5 0 Rating
Total Vote: 0