What Is DNS?
Every time you type a website address into your browser, something remarkable happens in the background — your computer needs to translate that human-readable name (like example.com) into a numerical IP address that computers actually use to communicate. This translation system is called the Domain Name System, or DNS.
Think of DNS as the internet's phone book. You look up a name, and it gives you the number (IP address) you need to make a connection.
The Journey of a DNS Request
Here's what happens step by step when you enter a URL in your browser:
- Browser Cache Check: Your browser first checks if it already knows the IP address from a recent visit. If so, it skips the rest.
- Operating System Check: If the browser doesn't know, it asks your operating system, which checks its own local cache and a file called
hosts. - Recursive Resolver: Your request goes to a DNS resolver — usually operated by your ISP or a public provider like Google (8.8.8.8) or Cloudflare (1.1.1.1). This resolver does the legwork for you.
- Root Name Server: If the resolver doesn't have the answer cached, it contacts a root name server. There are 13 sets of root servers worldwide. They point the resolver toward the correct Top-Level Domain (TLD) server (for .com, .org, etc.).
- TLD Name Server: The TLD server knows which authoritative name server is responsible for your specific domain.
- Authoritative Name Server: This final server holds the actual DNS records for the domain and returns the correct IP address.
- Connection Made: Your browser uses the IP address to connect to the website's server. The whole process typically takes milliseconds.
Key DNS Record Types Explained
| Record Type | Purpose | Example |
|---|---|---|
| A Record | Maps a domain to an IPv4 address | example.com → 93.184.216.34 |
| AAAA Record | Maps a domain to an IPv6 address | example.com → 2606:2800::1 |
| CNAME Record | Aliases one domain to another | www → example.com |
| MX Record | Directs email to the right mail server | mail.example.com |
| TXT Record | Stores text info (often for verification) | SPF, DKIM records |
Why Does DNS Speed Matter?
DNS lookups happen before your browser can even start loading a page, so a slow DNS resolver adds latency to every single website you visit. Switching from your ISP's default DNS to a faster public resolver can noticeably improve browsing speed.
Popular public DNS options include:
- Cloudflare (1.1.1.1): Frequently ranked fastest, strong privacy policy.
- Google (8.8.8.8): Reliable and widely used.
- Quad9 (9.9.9.9): Blocks known malicious domains automatically.
DNS and Privacy
Standard DNS queries are sent in plain text, meaning your ISP — and potentially others — can see every domain you look up. DNS over HTTPS (DoH) and DNS over TLS (DoT) are modern protocols that encrypt your DNS queries, significantly improving privacy. Major browsers like Firefox and Chrome now support DoH natively.
Understanding DNS is foundational to understanding how the internet works — and knowing how to configure it can improve both your browsing speed and your online privacy.