🇩🇪 DE 🇬🇧 EN
NexoraHost / Docs home
Popular searches:Minecraft won't startCreate Minecraft serverFiveM txAdminInstall WordPressSet up subdomainVPS GermanySSL errorOpen port 25565Discord bot hostingDNS troubleshooting

DNS Records Explained – Configure A, AAAA, MX, TXT & SRV Correctly

Quick answer: DNS (Domain Name System) translates domain names like myshop.com into IP addresses computers understand. For hosting, email and game servers you need A, MX, TXT and often SRV records – set correctly they determine reachability, deliverability and performance.

This guide is the complete DNS guide for hosting, websites, email and game servers – not just a basics explanation.

Table of contents

How DNS works – step by step

When someone visits nexorahost.com, this happens:

  1. Browser queries DNS resolver (usually your ISP or 1.1.1.1 / 8.8.8.8)
  2. Resolver queries root server → "Who manages .com?"
  3. Resolver queries TLD nameserver → "Who manages nexorahost.com?"
  4. Resolver queries authoritative nameserver → returns A record (IP)
  5. Browser connects to IP – website loads

This typically takes 20–120 ms. DNS is therefore a performance factor – slow nameservers = slower first page load.

More on nameservers: Change & configure nameservers

All DNS record types explained

DNS record types: A, MX, TXT and SRV overview
Each record type has its own purpose – nameservers determine where they are managed.
TypePurposeExampleWhen do you need it?
ADomain → IPv4myshop.com → 93.184.216.34Website, game server (direct IP)
AAAADomain → IPv6myshop.com → 2001:db8::1IPv6-capable servers
CNAMEAlias to another domainwww → myshop.comSubdomains, CDN, Cloudflare
MXMail servermail.myshop.com (priority 10)Receiving email
TXTText recordsv=spf1 include:...SPF, DKIM, DMARC, verification
SRVService + port_minecraft._tcp → mc.server.com:25565Minecraft, Teamspeak, SIP
NSZone nameserversns1.nexorahost.deSet at registrar

Practical examples

Example 1: Connect website to web hosting

A     @       93.184.216.34    TTL 3600
A     www     93.184.216.34    TTL 3600
# Or:
CNAME www     myshop.com       TTL 3600

Result: visitors reach your website via domain and www subdomain. Then set up SSL: SSL guide.

Example 2: Email DNS (SPF + DKIM + DMARC)

MX    @       mail.myshop.com   Priority 10
TXT   @       "v=spf1 mx a -all"
TXT   default._domainkey  "v=DKIM1; k=rsa; p=MIIB..."
TXT   _dmarc  "v=DMARC1; p=quarantine; rua=mailto:[email protected]"

Full guide: Set up SPF, DKIM & DMARC

Example 3: Minecraft server via domain (SRV record)

A     mc      192.168.1.100    TTL 3600
SRV   _minecraft._tcp  mc.myshop.com  0 5 25565  mc.myshop.com

Players connect with mc.myshop.com – no port needed. Details: Minecraft SRV record guide

Example 4: Activate Cloudflare CDN

A     @       93.184.216.34    Proxy ON (orange cloud)
CNAME www     myshop.com       Proxy ON
# Never proxy mail records:
MX    @       mail.provider.com  DNS only (grey cloud)
TXT   @       "v=spf1 ..."       DNS only

Cloudflare setup: Cloudflare DNS guide

Choosing TTL correctly – performance vs. flexibility

TTLDurationWhen to use?
3005 minBefore server migration, planned DNS changes
36001 hrStandard for most setups
8640024 hrStable records, maximum cache performance

Pro tip: Lower TTL to 300 48 hours before migration → migrate → after successful propagation raise back to 3600.

DNS propagation – how long does it really take?

Check propagation: dig myshop.com +short, whatsmydns.net, dnschecker.org

If old values appear after 48 hours → nameserver or record wrong, not "propagation".

Cloudflare & DNS – when does it make sense?

Cloudflare offers free CDN, DDoS protection and fast DNS (<10 ms). Useful for WordPress/shops with international traffic and Core Web Vitals issues.

Not ideal for: Pure mail servers (MX must not be proxied), some game server UDP setups.

Set up Cloudflare · Switch nameservers to Cloudflare

Common DNS errors & troubleshooting

Website not reachable

  1. Check A record points to correct IP
  2. Nameservers correct? (Nameserver guide)
  3. Cloudflare: check proxy mode (orange vs grey)
  4. Server firewall: ports 80/443 open?
  5. Waited for propagation?

Emails not arriving / landing in spam

  1. MX record present and correct?
  2. SPF set? (SPF guide)
  3. DKIM enabled at mail provider?
  4. DMARC policy defined?

Security & performance

Related guides

FAQ

What's the difference between A record and CNAME?

A record points directly to an IP. CNAME redirects to another domain name – never both for the same name. Root domain (@) technically cannot be CNAME.

Why does www work but not the root domain?

Often the A record for @ (root) is missing. www has CNAME or its own A record, @ doesn't. Set both separately.

Manage domain & DNS: panel.nexorahost.de

NexoraHost

Register a domain

Connect your domain to webspace, email or game server – unlimited DNS records.

nexorahost.com · Maincubes FRA01 · 1 Tbit/s DDoS · 99,9 % Uptime