Published on
Why an A record alone is not enough
An A record only answers the question of the IP address. If your server runs on a port other than the default, your fellow players would still have to enter it - mc.yourcompany.com:25578.
The SRV record solves exactly that: in addition to the target, it also publishes the port. The Minecraft client queries it on its own and connects to the port named there. For players, only mc.yourcompany.com remains. Because an SRV record must never point directly to an IP, an A record with the same subdomain always belongs with it.
With us: one form, both records
In your domain's DNS management, you do not have to create the SRV and A records individually. If you choose the type SRV for the new record, the game server wizard opens:
- Note the IP address and port of your Minecraft server from the panel - the same details you otherwise enter when joining.
- In DNS management, enter the desired name in subdomain, for example
mc. For the domain itself, enter@. - Choose
SRVas the type and Minecraft Server as the server. - Enter the server IP and port and save.
- In the Minecraft client, add the server with
mc.yourcompany.com, without a port.
From this, the web interface automatically creates two records - the A record pointing to the IP and the SRV record pointing to it:
mc A 203.0.113.10
_minecraft._tcp.mc SRV 0 0 25578 mc.yourcompany.com.
The name with underscores, the dot at the end, priority and weight are set by the wizard itself. The typical typos with SRV records disappear. If you later change the IP or port, it adjusts the A record at the same time.
Main domain with @ or a subdomain?
Both work; the difference is only in the subdomain field:
@stands for the domain itself. Your players then simply connect toyourcompany.com- it does not get any shorter.mc,playor another name results inmc.yourcompany.com. That is the right route if a website lives under the main domain.
Important with @: the wizard sets the domain's A record to your game server's IP. If this A record has so far pointed to your website, it is overwritten - the website is then no longer reachable under the main domain. So only use @ if the domain exists solely for the server.
If you run several servers, simply create several records with their own names - survival, creative, modded - each with the matching port. Subdomains cost nothing extra.
Limits: Bedrock, default port and other games
- Bedrock Edition does not evaluate SRV records. On console, mobile and the Windows edition, players enter address and port separately. A name via A record still works - see Set up crossplay and the overview for both editions in Minecraft server with your own domain.
- Other games such as Rust, Palworld, CS2 or Terraria do not query SRV records. In the wizard, choose Other game server (A record) for them: only an A record is created, and the web interface shows you the address with port that your fellow players enter.
- Server lists and tools sometimes continue to show IP and port. That is normal; the connection via the domain still works.
TeamSpeak and other services
For TeamSpeak 3, the wizard offers its own server type. It sets the record _ts3._udp with the voice port, so that the client also connects with the name only.
| Service | Record name | Default port |
|---|---|---|
| Minecraft (Java) | _minecraft._tcp | 25565 |
| TeamSpeak 3 (voice) | _ts3._udp | 9987 |
Running your own TeamSpeak server on a VPS is described in Set up a TeamSpeak server.
If it does not work
- Wrong port or wrong IP: the record contains your game server's port from the panel, not automatically 25565.
- Name already taken: if there is already a CNAME on the chosen name, the wizard reports a conflict. Delete the old record or take another name.
- Website suddenly gone: then the SRV record was set on
@and overwrote the website's A record. Move the server to a subdomain and let the A record for@point to the website again. - A changed record does not take effect yet: our DNS records have a TTL of 24 hours. New records are usually there after a few minutes; a change to an existing one can take up to a day.
- Check it yourself:
nslookup -type=SRV _minecraft._tcp.mc.yourcompany.comon Windows ordig SRV _minecraft._tcp.mc.yourcompany.comon Linux and macOS. The answer must contain port and target.
Domain with another DNS provider?
If your domain's nameservers point to another provider, you create the two records there by hand:
- an A record pointing to the server IP, for example with the name
mc, - an SRV record with the name
_minecraft._tcp.mcand the values priority0, weight0, your port and the targetmc.yourcompany.com.- with a dot at the end.
Some interfaces split the values into separate fields (priority, weight, port, target), some append the domain name themselves. It is easier to manage the domain with us right away - see Change nameservers.
Frequently asked questions
Domain and game server from one provider
A .de domain costs €6.49 / year, a Minecraft server starts at €2.99 / month - both prepaid and managed in the same web interface.
View domain extensions & pricesRegister a domain
from €6.49 / year
Prepaid, DNS management included, renew yourself in the customer interface.
View extensions & pricesRead more
- Domains - extensions & prices
- Minecraft server with your own domain
- DNS records explained
- Join a Minecraft server
- Set up a subdomain
Discover more