What Is DNS (Domain Name System)?
DNS is the internet's phone book. It translates human-readable domain names like example.com into IP addresses that computers use to communicate. DNS is the foundation of virtually every internet service, including email delivery.
How DNS Works
When you type a domain name into your browser or send an email, your device queries a DNS resolver to find the corresponding IP address. The resolver checks its cache first. If the answer is not cached, it queries the DNS hierarchy: root servers, TLD (top-level domain) servers, and finally the authoritative name server for the domain. The result is cached according to the record's TTL (Time to Live) value.
Common DNS Record Types
DNS supports many record types, each serving a different purpose:
- A — Maps a domain to an IPv4 address
- AAAA — Maps a domain to an IPv6 address
- MX — Specifies mail servers for the domain
- CNAME — Creates a domain alias
- TXT — Stores text data (used for SPF, DKIM, DMARC)
- NS — Delegates to authoritative name servers
- PTR — Reverse DNS lookup (IP to hostname)
DNS and Email
DNS is critical for email delivery. MX records direct email to the correct mail server. SPF, DKIM, and DMARC records are all published in DNS for email authentication. Without properly configured DNS records, email cannot be delivered or verified.
Frequently Asked Questions
What are the most common DNS record types?
The most common types are A (IPv4), AAAA (IPv6), MX (mail servers), CNAME (aliases), TXT (text data for SPF/DKIM/DMARC), NS (name servers), SOA (zone authority), and PTR (reverse DNS).
What is DNS propagation?
DNS propagation is the time it takes for DNS changes to be reflected across all DNS servers worldwide, typically 15 minutes to 48 hours depending on TTL values.
Why is DNS important for email?
DNS is critical because MX records tell servers where to deliver email, and SPF/DKIM/DMARC records in DNS handle authentication. Without proper DNS, email cannot be delivered or verified.