Back to all guides
Privacy & Security10 min read

The Complete DNS Record Guide: A, AAAA, CNAME, MX, TXT, SPF, DKIM, and DMARC Architecture

An architectural breakdown of recursive DNS resolvers, authoritative nameservers, TTL propagation dynamics, and securing domain email deliverability.

A
Aakash Sharma
Creator of Softnag & Full-Stack Developer
Published: August 20, 2026Updated: August 24, 2026
The Complete DNS Record Guide: A, AAAA, CNAME, MX, TXT, SPF, DKIM, and DMARC Architecture - Privacy & Security Illustrated Guide
Privacy & Security

Privacy & Security technical reference asset

Share this guide

The Domain Name System (DNS) is often described as the phonebook of the internet. It translates human-friendly domain names like `softnag.qzz.io` into machine-routable IP addresses like `104.21.45.18` or `2606:4700::6815:2d12`.

However, modern DNS is far more than an IP lookup table. It orchestrates email routing, verifies third-party service ownership, prevents domain spoofing and phishing attacks, and load-balances global web traffic.

The 4-Step DNS Lookup Journey: Root to Authoritative#

When a browser initiates a web request, a recursive resolver queries four distinct server tiers to resolve the domain:

  • 1. Recursive Resolver: Typically provided by your ISP or a public provider (e.g. 1.1.1.1 or 8.8.8.8) that manages the lookup query.
  • 2. Root Nameserver: 13 logical root server clusters worldwide directing queries to appropriate Top-Level Domain (TLD) servers.
  • 3. TLD Nameserver: Manages records for specific extensions (.com, .org, .io).
  • 4. Authoritative Nameserver: Holds the actual DNS zone file records configured by the domain owner (e.g. Cloudflare, AWS Route 53).

Core Routing Records: A, AAAA, CNAME, and ALIAS/ANAME#

The primary records responsible for web routing include:

Record TypeTarget ValuePurposeExample
A RecordIPv4 Address (32-bit)Maps hostname to an IPv4 endpoint.example.com -> 192.0.2.1
AAAA RecordIPv6 Address (128-bit)Maps hostname to a modern IPv6 endpoint.example.com -> 2001:db8::1
CNAME RecordCanonical HostnameAliases one hostname to another. Cannot exist on zone apex (@).www.example.com -> example.com
ALIAS / ANAMEVirtual Hostname AliasDNS provider flattening allowing CNAME-like routing at the zone apex.example.com -> myapp.vercel.app
Core web routing DNS record types.

Mail Exchange (MX) Records & Priority Routing#

MX records specify which mail servers accept incoming email for a domain. Each MX record includes a numeric priority value (e.g. 10, 20, 30). Sending mail servers always attempt delivery to the lowest numeric priority first, falling back to higher numbers during outages.

The Email Authentication Trifecta: SPF, DKIM, and DMARC#

Because legacy SMTP protocol allows anyone to forge the "From:" header, modern email deliverability requires three coordinated DNS TXT records:

  • Sender Policy Framework (SPF): A TXT record listing all IP addresses and sending providers authorized to send email on behalf of your domain (e.g. `v=spf1 include:_spf.google.com ~all`).
  • DomainKeys Identified Mail (DKIM): Uses asymmetric cryptography. The mail server signs outgoing emails with a private key; the recipient validates the signature against the public key published in a DNS TXT record.
  • Domain-based Message Authentication, Reporting & Conformance (DMARC): Instructs receiving servers what action to take (none, quarantine, or reject) if SPF or DKIM checks fail (e.g. `v=DMARC1; p=reject; rua=mailto:dmarc-reports@example.com`).

Time to Live (TTL) & DNS Propagation Realities#

Time to Live (TTL) is an integer value (in seconds) defining how long intermediate caching resolvers can store a DNS record before re-querying authoritative nameservers.

Setting TTL to 300 seconds (5 minutes) before planned server migrations allows near-instant cutovers. For stable production systems, TTLs between 3600 (1 hour) and 86400 (24 hours) reduce latency and server query volume.

Modern DNS Security: DNSSEC, DoH, and DoT#

Domain Name System Security Extensions (DNSSEC) cryptographically signs DNS records to prevent DNS cache poisoning and man-in-the-middle spoofing.

Simultaneously, DNS over HTTPS (DoH) and DNS over TLS (DoT) encrypt DNS queries between client devices and resolvers, preventing eavesdropping and ISP tracking.

Key Takeaways & Best Practices
  • A and AAAA records map domain names directly to IPv4 and IPv6 internet addresses.
  • CNAME records alias hostnames but cannot legally exist at the root apex domain without ALIAS flattening.
  • SPF, DKIM, and DMARC are mandatory DNS records for achieving 99%+ email inbox delivery and stopping spoofing.
  • Lower your DNS TTL to 300 seconds 24 hours prior to server migrations to enable rapid IP switching.

Final Thoughts

Proper DNS configuration forms the bedrock of web security, reliable infrastructure routing, and enterprise email reputation.

Inspect and audit live domain DNS records with Softnag’s fast in-browser DNS Lookup utility.

Related Technical Guides

View all 40 guides →