Menu

Categories

PDF Tools Image Tools Audio Tools Video Tools Calculator Tools Developer Tools Text Tools SEO Tools Converter Tools More Tools

Language

English Español Français Deutsch हिन्दी বাংলা

DNS Record Types Explained (A, AAAA, CNAME, MX, NS, TXT, SOA) for Domain Migrations and Zero-Downtime Launches

Most domain launch disasters happen because engineers treat DNS as a magical text spreadsheet five minutes before DNS cutover: someone points a CNAME directly at the root apex domain and unknowingly breaks company email (MX and TXT), forgets to lower TTL ahead of time leaving half of Europe stranded on an old server IP for 24 hours, or queries a brand-new subdomain before creating its record and triggers negative NXDOMAIN caching across office resolvers.

Understanding what each DNS record actually instructs resolvers to do—paired with clean verification before flipping production traffic—makes server migrations boring and deterministic.

Address and Alias Records (A, AAAA, and CNAME)

  • A Record (IPv4 Address): Maps a hostname directly to a 32-bit IPv4 address (203.0.113.10). Inspect current live IPv4 targets with an A Record Checker and plan IP allocations cleanly alongside our CIDR and IPv4/IPv6 guide.
  • AAAA Record (IPv6 Address): Maps a hostname directly to a 128-bit IPv6 address (2001:db8::10). Critical outage trap: If a domain publishes an AAAA record pointing to an old origin or an unconfigured dual-stack load balancer while only A gets updated during a cloud migration, IPv6-capable mobile networks connect straight to the wrong IPv6 box and fail TLS! Always inspect both with an AAAA Record Checker.
  • CNAME Record (Canonical Name Alias): Points one hostname (www.example.com) to another hostname (edge.hostingprovider.net) instead of hardcoding an IP that might rotate. Audit alias chains cleanly via a CNAME Checker—and avoid deep CNAME -> CNAME -> CNAME hops that burn extra DNS lookup latency.

The Root Apex (@) CNAME Conflict That Breaks Email

RFC DNS standards forbid placing a CNAME on the same hostname alongside any other record type (MX, TXT, NS, SOA). Because your bare root domain (example.com / @) always holds NS and SOA records—and usually MX and SPF TXT records—putting a raw CNAME at the zone apex can cause DNS resolvers to ignore your MX mail routing or fail SPF checks!

When hosting providers require hostname targets at the apex (example.com without www), use a DNS provider that performs edge CNAME flattening / ALIAS / ANAME synthesis (resolving the target behind the scenes and returning synthesized A/AAAA answers externally) while leaving MX and TXT records untouched.

Routing, Delegation, and Policy Records (MX, TXT, NS, SOA)

  • MX (Mail Exchanger): Lists inbound mail servers paired with integer priorities (lower number = tried first, e.g., 10 mail1.provider.com, 20 mail2.provider.com). Inspect priority tiers and missing fallback targets using a Domain MX Analyzer. (Never point an MX target at a CNAME—RFC 5321 requires MX values to resolve straight to A/AAAA records!)
  • TXT (Arbitrary Verification & Policy Strings): Powers domain ownership tokens (google-site-verification=...), SPF, DKIM, DMARC, and BIMl. View published strings cleanly via a TXT Record Viewer and validate exact mail policy syntax with our SPF/DKIM/DMARC deliverability guide.
  • NS (Authoritative Name Servers): Declares which DNS provider holds authority for the zone. When switching from one registrar's default DNS to Cloudflare, Route 53, or Cloud DNS, first replicate every existing record cleanly on the destination provider, verify responses directly, then swap registrar NS records via an NS Record Checker. (Watch out for DNSSEC: disable or migrate DS keys intentionally before changing NS providers, otherwise validating resolvers fail SERVFAIL globally!)
  • SOA (Start of Authority): Stores zone primary nameserver, zone serial number, refresh/retry intervals, and—most famously—the minimum/negative cache TTL telling recursive resolvers how long to remember that a queried subdomain does not exist (NXDOMAIN). Inspect zone authority timers cleanly via an SOA Record Checker.

Zero-Downtime Cutover Checklist (Why "Wait 48 Hours" Is Usually Avoidable)

"DNS takes 48 hours to propagate" usually describes someone who forgot to lower a 86400s (24-hour) TTL before moving servers! Execute migrations smoothly with a disciplined timeline:

  1. 48 hours before cutover: Drop TTL on migrating A, AAAA, CNAME, and MX records down to 60 or 300 seconds well before moving traffic, giving old 24-hour caches ample time to expire naturally.
  2. Pre-create new records before testing: Never query new-api.example.com in your browser before publishing the record! Querying first caches an NXDOMAIN ("does not exist") answer for the SOA negative TTL window, blocking your own laptop from seeing the live record immediately afterward.
  3. Verify TLS, uptime, and post-launch URLs: Check domain history/availability cleanly during brand expansions with a Domain Age Checker and Domain Availability Checker, and verify live HTTP health, redirect chains, and indexing status after cutover using a Website Uptime Checker, Bulk URL Checker, Index Checker, and our DNS and TLS troubleshooting runbook.
  4. Restore sensible TTL (3600 seconds) once stable: After 24 hours with zero rollbacks needed, raise TTL back to reduce DNS query overhead cleanly.

Quick Zone-File Audit Traps Before Flipping Nameservers

Even careful engineers overlook subtle DNS syntax gotchas inside zone editors and Terraform modules:

  • Relative vs. fully qualified (trailing dot) targets: Inside standard BIND zone files, forgetting a trailing period turns mail.example.com into mail.example.com.example.com! Cloud DNS UIs usually normalize trailing dots automatically, yet raw BIND exports and Ansible templates punish missing dots instantly.
  • Forgetting apex www vs. non-www redirects and SSL SANs: Updating example.com while leaving www.example.com pointing at a retired CDN endpoint guarantees intermittent certificate mismatches for half your bookmarks. Confirm both apex and www (A, AAAA, and CNAME) resolve cleanly and carry matching TLS certificates before announcing launch.
  • Wildcard record precedence (*.example.com): A wildcard A record matches missing subdomains only when zero records of any type exist at that label—meaning adding a standalone TXT validation record on _verify.example.com blocks the *.example.com wildcard from matching _verify.example.com unless an explicit A/CNAME is also defined there!

Bottom line: Never slap a raw CNAME on a root domain hosting MX/TXT mail records, migrate DNS zones by replicating everything before touching NS, watch dual-stack AAAA parity, and always drop record TTLs ahead of server swaps so cutovers finish in minutes rather than days.

Try a free tool

Every tool runs in your browser with no account required.

Browse all tools