Privacy notice This website only uses technically necessary cookies. Statistics, marketing and external services are not loaded without JavaScript. Learn more in our Privacy Policy.

Halloween at Nexthosting: 10% off game servers with the code – until November 1

Back to the blog
Nexthosting Guide

DNS Settings for Servers: How to Make Your Game Server Reachable

DNS settings for game servers: add A/AAAA records, use SRV only if needed, enable DNSSEC, and skip PTR and MX records behind a proxy or CDN.

Sep 12, 2026 124 views
DNS Settings for Servers: How to Make Your Game Server Reachable

For a rented game server, an A record or AAAA record pointing to the server IP and, optionally, an SRV record with the matching port are enough. The reverse DNS entry, that is the PTR record, is usually set by the provider, not by you. Enable DNSSEC if your provider supports it, and definitely leave MX and PTR records out if you put a proxy or CDN in front of your server.


In short:

  • For a game server, an A or AAAA record pointing to the server IP is enough, plus an optional SRV record for non-standard ports.
  • The PTR record is usually set by the hosting provider, not by the user, and it affects mail delivery and the reputation of the server.
  • DNSSEC should be enabled if the provider supports it, to protect against tampering, while MX and PTR records always need to be verified.
  • With your own DNS servers, careful zone file management with regular serial number updates is necessary, and you should also test the configuration with dig.
  • Compared to self-hosting, managed DNS services offer more convenience, security, and resilience, especially for more complex setup requirements.

Nexthosting
High-performance hosting for game servers
Nexthosting offers game servers, VPS, and dedicated servers with reliable performance, DDoS protection, and personal support from Germany.
Explore hosting solutions

Table of contents

Which DNS record types you really need for your server

At its core, a DNS record is nothing more than a mapping rule: it tells requesters where a name leads or which service is responsible for it. Running a game server or VPS takes only a few record types, but each of them has a clearly defined job.

  • A record: points a hostname to an IPv4 address, for example server.deinedomain.de. 3600 IN A 203.0.113.10.
  • AAAA record: the same for IPv6, such as server.deinedomain.de. 3600 IN AAAA 2001:db8::1.
  • CNAME record: redirects one name to another name, handy for subdomains like www or panel.
  • MX record: determines which server accepts mail for a domain.
  • TXT record: carries text information, mostly for SPF, DKIM, or DMARC email authentication.
  • SRV record: defines service, protocol, priority, weight, port, and target server, for example for a Minecraft SRV record with the pattern _minecraft._tcp.deinedomain.de. 3600 IN SRV 0 5 25565 server.deinedomain.de.
  • NS record: specifies which name servers are authoritative for a zone.

One point many operators underestimate: DNS is publicly visible. Never put API keys, credentials, or internal paths in TXT records just because it is technically possible.

How do you set up the DNS zone for your server?

Before you change anything, you need three things: access to the domain registrar or your host's DNS panel, the static IP of your server, and clarity about which subdomains you actually need.

  1. Open the zone: Log in to your provider's DNS panel and select the domain in question.
  2. Create the A/AAAA record: Enter the hostname (for example mc) and the server IP, and initially set the TTL to 300 to 3,600 seconds.
  3. Add SRV if your game uses a non-standard port or a voice server such as TeamSpeak sits behind it.
  4. Add TXT records for email as soon as you send mail through the domain yourself.
  5. Validate with dig mc.deinedomain.de A or nslookup mc.deinedomain.de to check whether the response matches the IP you entered.

If you run your own authoritative server with BIND instead, you edit the zone file directly: the entry goes into named.conf as a zone declaration, and the actual records go into the corresponding zone file. After every change, you must increase the SOA serial number, otherwise secondary servers will not pick up the new version. YouStable describes the complete process, including the required port openings for port 53 TCP and UDP.

Pro tip: Test every change immediately with dig +trace domain.de. The command shows you the entire resolution path from the root zone to your server and uncovers delegation errors before players notice them.

Typical sources of errors are forgotten trailing dots on FQDN entries in zone files, wrong priority values in SRV records, and an SOA serial that was not increased after a change.

Why is reverse DNS (PTR) important for your server?

A PTR record does the opposite of an A record: it resolves an IP address back to a hostname, managed through special zones under in-addr.arpa or ip6.arpa. For pure game servers this rarely matters, but for mail servers it is almost always critical, because many receiving servers reject messages without a matching PTR record or mark them as spam.

  • For rented IPs, the hosting provider usually sets the PTR record, not you.
  • Request it through a support ticket with the hostname you want, usually the same name as your A record.
  • You can check the result with dig -x 203.0.113.10 and should make sure the A record and PTR record match each other.
  • This A-to-PTR consistency directly affects the deliverability and reputation of your mail server with other providers.

Setting up name server delegation and glue records correctly

Delegating a domain works across two levels: the parent zone at the registrar and the authoritative name server that manages the actual records. Microsoft documents this structure in detail using primary, secondary, and stub zones.

  • If a name server points to an address inside its own zone (for example ns1.deinedomain.de), the registrar needs a glue record to resolve the circular reference.
  • Use at least two to three authoritative name servers on different networks or locations to avoid a single point of failure.
  • You should secure zone transfers between the primary and secondary server with TSIG, meaning you authenticate them with a shared cryptographic key.
  • The SOA serial must be increased consistently with every change, otherwise secondary servers stay on the old version.

DNSSEC, zone transfer hardening, and what the BSI recommends

Security in DNS operations is not an optional extra but the foundation for players and customers reaching the right server in the first place. DNSSEC signs zones cryptographically and thus protects against cache poisoning, that is, injecting false responses into a resolver.

  • Sign your zone and plan a regular rotation of the KSK (Key Signing Key) and ZSK (Zone Signing Key).
  • Enable DNSSEC validation on the resolver side as well, not just when signing.
  • Strictly restrict zone transfers via TSIG to known secondary servers, never to arbitrary requesters.
  • Do not run open recursive name servers on the internet, and apply rate limits against request abuse.
  • Set up monitoring and logging for your DNS infrastructure to spot unusual request patterns early.

In its guide to operating DNS servers, the BSI (German Federal Office for Information Security) also recommends a strict separation between authoritative servers and recursive resolvers, since the two roles have different attack surfaces.

Pro tip: If you are just introducing DNSSEC, start by testing with a short signature validity and switch to longer rotation cycles only after a stable test phase.

Which TTL values make sense for game servers?

The TTL (time to live) determines how long a resolver caches a response before it asks again. For A and AAAA records on game servers, 300 to 3,600 seconds is a reasonable range, MX records tolerate significantly more calm at 3,600 to 86,400 seconds, and for a planned failover, 30 to 60 seconds is sometimes enough.

  • Lower the TTL 24 to 48 hours before a planned migration or an IP change.
  • Make the actual change, monitor availability closely, and raise the TTL again afterward.
  • A permanently low TTL creates more load on resolvers worldwide, with no real benefit in normal operation.
  • Anycast networks or managed DNS providers absorb part of this load anyway, as a guide to DNS management explains.

Managed DNS or your own server: what fits your game server project?

Self-hosting with BIND or PowerDNS gives you full control over every record and every security rule, but it also requires you to organize redundancy, patches, and DDoS protection yourself. Managed DNS reduces this effort considerably, because providers usually bring anycast networks, built-in attack mitigation, and firm availability commitments.

  • Self-hosting mainly pays off for very specific internal setups, for test environments, or if you want full control for learning purposes.
  • For most community projects with publicly reachable players, the advantage of a panel or a managed DNS service clearly outweighs the alternative.
  • IBM aptly frames this trade-off as a question between maximum control and minimal maintenance effort.
  • If you want to get your hosting and DNS management from one source, Nexthosting offers a control panel that handles A, AAAA, and SRV records without your own BIND instance.

The most important checks when DNS is not working

When players cannot reach the server or emails do not arrive, a fixed order of checks helps more than random trial and error.

  1. Check the A and AAAA record with dig deinedomain.de A and compare the IP with the actual server address.
  2. Verify the SRV record for the correct port, priority, and target hostname.
  3. If you have mail problems, test MX and TXT records with dig deinedomain.de MX and dig deinedomain.de TXT.
  4. Check the PTR record with dig -x <ip> and compare it with the A record.
  5. Check firewall rules and port openings on the server itself, especially for the game port and port 53.
  6. If a proxy or Cloudflare-like service sits in front, check whether MX- or PTR-relevant records are accidentally routed through the proxy instead of resolving directly.
  7. After every registrar change: cross-check NS delegation and glue records again with dig NS deinedomain.de.
  8. For mail problems, also check SPF, DKIM, and DMARC as well as the A-to-PTR consistency.

Pro tip: Save the output of dig before every major change. A before-and-after comparison shows you in seconds which record actually changed.

Author's view: priorities for community admins running DNS

Most DNS problems in game server communities are caused not by a lack of knowledge but by a lack of documentation. Zone files should be versioned, ideally in a Git repository, so every change stays traceable. Where it makes sense, automate management through infrastructure as code instead of clicking around in a panel. And test failover scenarios regularly, not only when the server actually goes down.

— Erik

Nexthosting: hosting and DNS management from one source

If you run a game server, you do not want to also deal with your own BIND instance, zone transfer security, and PTR support tickets at three different providers on the side. That is exactly where Nexthosting comes in: game servers, VPS, and dedicated servers come with a control panel and DDoS protection, so A, AAAA, and SRV records are managed directly in the same interface as the server itself. This pays off especially if you need fast provisioning and want to settle PTR requests without detours through support. For a Minecraft setup with its own SRV record, take a look at the Minecraft server plans, and for more flexible projects with full root access, a VPS Standard plan is a good fit. Check availability for your project and set up the matching DNS records directly in the panel.

Sources

For deeper technical details, it is worth going straight to the original sources. The BSI guide to operating DNS servers remains the reference for security-relevant configuration decisions. Microsoft Learn explains zone types and zone transfers in a structured and practical way. If you are planning a security strategy beyond DNS, the security guideline on WordPress and NIS2 offers additional notes on current requirements for web infrastructure.

FAQ

What absolutely belongs in the DNS zone of a game server?

At least one A record or AAAA record pointing to the server IP, plus an SRV record if the game uses a non-standard port.

Who sets the PTR record for my server IP?

For rented IPs, the hosting provider usually sets the PTR record after you request it through a support ticket, not the customer.

How long should the TTL be for a game server A record?

For normal operation, 300 to 3,600 seconds is enough. Before a planned migration, you should temporarily lower it to a smaller value.

Do I need DNSSEC for a simple game server?

It is not strictly required, but it makes sense as soon as your provider supports it, because it protects against cache poisoning attacks.

Is running my own DNS server worth it compared to managed DNS?

For most game server communities, the advantages of managed DNS or a hosting provider panel outweigh the alternative. Self-hosting mainly pays off for very specific internal requirements.