What is DNS? Complete Guide with Examples
DNS (Domain Name System) is the internet's phonebook — it translates human-readable domain names (example.com) into IP addresses (93.184.216.34) that computers use to route traffic. DNS is a distributed, hierarchical database operated by thousands of servers worldwide. Every time you visit a website, send an email, or use an internet service, DNS resolution happens behind the scenes to convert names to addresses.
How Does DNS (Domain Name System) Work?
DNS resolution follows a hierarchical process: your browser checks its cache, then queries your OS resolver, then your ISP's recursive resolver. If not cached, the recursive resolver queries root nameservers (which know TLD servers), TLD nameservers (.com, .org — which know authoritative nameservers), and finally the domain's authoritative nameserver (which has the actual DNS records). The answer cascades back with each server caching the result for the TTL (Time to Live) duration. This entire process typically takes 20-120 milliseconds.
Key Features
- Record type queries: A (IPv4), AAAA (IPv6), CNAME (alias), MX (mail), TXT (verification), NS (nameserver)
- Propagation checking across multiple global DNS servers simultaneously
- TTL (Time to Live) information showing how long records are cached
- Reverse DNS lookup resolving IP addresses back to domain names
- DNSSEC validation checking for DNS security extensions
Common Use Cases
Domain Configuration
Web administrators set up A records (pointing to web servers), MX records (for email), CNAME records (for subdomains), and TXT records (for verification and SPF/DKIM email authentication).
DNS Migration
When moving to a new host, checking DNS propagation ensures the domain resolves to the new server's IP across all regions before decommissioning the old server.
Email Deliverability
DNS TXT records for SPF, DKIM, and DMARC authenticate email senders. Correct DNS configuration prevents legitimate emails from being marked as spam.