Minecraft servers
How a domain points to a Minecraft server
Understand A, AAAA and SRV records for a memorable Minecraft server address without confusing DNS with port forwarding.
By AppLaunch Editorial · Reviewed 2026-08-25
Direct answer
An A or AAAA record maps a hostname to the server address. For Java Edition on a non-default port, an SRV record can advertise the service port so players use the hostname alone. DNS does not open a firewall or make a private address reachable.
What this means in plain English
A domain lets players use a friendly name such as play.example.com instead of remembering a number. An A record points that name to an IPv4 address; an AAAA record does the same for IPv6. Java servers using an unusual port can also use an SRV record to advertise that port.
DNS only tells players where to go. It does not start the server, open a firewall or make a private home address reachable from the internet. Those network parts must already work before the friendly name can work.
Which DNS records are needed?
| A/AAAA | Hostname to IPv4/IPv6 address |
|---|---|
| SRV | Service target and port |
| Still required | Reachable server port and correct firewall |
A simple example
Your Java server is reachable at 203.0.113.10 on port 25570. You create play.example.com pointing to that address, then add the correct Minecraft SRV record pointing at play.example.com and port 25570. Players can enter the friendly name without typing :25570.
What to do, step by step
1. Create a dedicated hostname such as play.example.com.
Start here before buying anything or changing several settings at once. It gives you a clear starting point based on a/aaaa: hostname to ipv4/ipv6 address. Write the result down so you can compare it later.
2. Point it at the reachable server address.
Use the same files, versions and settings that the real project will use. A quick test with an empty or different setup can look successful while completely missing the problem you are trying to solve.
3. Add the edition-appropriate SRV record if needed.
Try the busiest realistic situation, not the easiest one. Include the people, data, traffic or background work you genuinely expect, then watch for slowdowns and errors rather than relying on a single headline number.
4. Test from outside the server network after DNS propagates.
Finish by checking the result against still required: reachable server port and correct firewall. Keep the old setting or release available until you know the change works and can be reversed safely.
One more useful tip
Test from a phone connection or another network, not only from inside the same home. Local networks can give different DNS or routing results and make a broken public setup look healthy.
Common mistakes and how to avoid them
Pointing DNS at a private LAN address.
This gives a misleading or unsafe result because it leaves out a/aaaa. A better approach is to create a dedicated hostname such as play.example.com, then check the result before making the change permanent.
Expecting an SRV record to open the port.
This gives a misleading or unsafe result because it leaves out srv. A better approach is to point it at the reachable server address, then check the result before making the change permanent.
Proxying an unsupported game protocol through an HTTP-only proxy.
This gives a misleading or unsafe result because it leaves out still required. A better approach is to add the edition-appropriate srv record if needed, then check the result before making the change permanent.
Words explained
- Java
- The program used to run Minecraft: Java Edition servers. You normally choose a suitable Java version, then the server software runs inside it.
- port
- A numbered network doorway used by a service. Players need the Minecraft port to be reachable, but unrelated ports should stay closed.
- DNS
- The system that turns a friendly name such as play.example.com into the server address computers use.
- proxy
- A front server that accepts players and sends them to one of several Minecraft servers, such as a lobby or survival world.
Quick checklist
- Create a dedicated hostname such as play.example.com.
- Point it at the reachable server address.
- Add the edition-appropriate SRV record if needed.
- Test from outside the server network after DNS propagates.
Common questions
What is the simple answer?
An A or AAAA record maps a hostname to the server address. For Java Edition on a non-default port, an SRV record can advertise the service port so players use the hostname alone. DNS does not open a firewall or make a private address reachable.
What should I check first?
Start with a/aaaa: hostname to ipv4/ipv6 address. That is usually more useful than choosing from a marketing label or copying somebody else’s setting.
How can I make the change safely?
Create a dedicated hostname such as play.example.com. Then change one thing at a time, keep a backup or old version, and use the same real-world test after each change.
What is the easiest mistake to avoid?
Pointing DNS at a private LAN address. Avoiding that one mistake makes the rest of the comparison much more trustworthy.