AnonymFlow
securite-reseauINFO

What Is DNS? How the Internet's Phonebook Works - and Who's Watching (2026)

DNS is the system that turns a domain name like example.com into the IP address your device connects to. How DNS resolution works, why your DNS reveals every site you visit, and how encrypted DNS and a VPN protect it.

By Eric Gerard · Editor · AnonymFlow3 min readPhoto: Unsplash

Every time you visit a website, send an email, or open an app, something invisible happens first: a DNS lookup. DNS is one of the internet's most fundamental systems - and one of its quietest privacy leaks. This guide explains what DNS is, how a lookup actually works, who can see your queries, and how encrypted DNS and a VPN protect them.

What DNS is

DNS (Domain Name System) is the internet's phonebook. Computers find each other by numeric IP addresses, but humans remember names - so DNS translates a domain like example.com into the IP your device actually connects to.

Without it, you'd memorise raw IP addresses for every site. Instead, DNS does the lookup automatically, constantly, in the background - every site, app and email depends on it.

Server racks in a data center
Server racks in a data center

How a lookup works

  1. Your device asks a resolver (often your ISP's, or Cloudflare/Google) for a domain's IP.
  2. If it's not cached, the resolver queries the root servers, then the TLD servers (.com, .org…), then the domain's authoritative name server, which returns the IP.
  3. The resolver caches the answer (for its TTL) and hands it back; your device connects.

All in milliseconds, with caching at every level keeping it fast.

The privacy problem: DNS reveals everything

Here's what most people miss: traditional DNS is unencrypted. The resolver you use - usually your ISP's - sees every domain you look up. That's effectively a log of every site you visit, even when those sites use HTTPS (HTTPS hides the page contents, not which site you asked for).

Your ISP can record it, sell it, or be compelled to share it; on public Wi-Fi, others can watch too. DNS is among the biggest unnoticed leaks in everyday browsing - which is why our DNS leak test exists.

A server room aisle lined with racks
A server room aisle lined with racks

How to make DNS private

  • Encrypt DNS with DoH (DNS over HTTPS) or DoT (DNS over TLS), pointed at a privacy-respecting resolver - most browsers/OSes now support it. See our DNS over HTTPS setup guide.
  • Route everything through a VPN - it handles DNS inside its own encrypted tunnel, so neither your ISP nor the local network sees your queries or destinations.
  • Test for leaks to confirm your real resolver isn't exposed.
Editorial pick
4.6 / 5

Encrypted DNS through the tunnel → NordVPN

NordLynx (WireGuard) · DNS resolved inside the encrypted tunnel · Built-in leak protection · 30-day money-back guarantee

Deloitte audit 202430-day guarantee14M+ users
See the offer

DNS also powers geo-tricks: Smart DNS reroutes only the lookups needed to unblock streaming, without encrypting traffic - useful, but not a privacy tool. And the IP that DNS resolves to is the one sites log; see what your IP address reveals.

The bottom line

DNS is the internet's phonebook - it turns domain names into IPs every time you connect, silently and constantly. The catch: by default it's unencrypted, so your resolver (usually your ISP) sees every site you visit. Fix it by encrypting DNS (DoH/DoT) or, more completely, routing it through a VPN that resolves DNS inside the tunnel - and verify with a leak test that it's actually private.

Editorial guide based on how DNS resolution works (resolver, root/TLD/authoritative, caching) and DNS privacy (unencrypted queries, DoH/DoT, VPN-tunnelled DNS, leaks). Commercial links carry the rel="sponsored nofollow" attribute; an affiliate commission may apply at no extra cost to you.

Going further. Related reading on these topics: what a firewall actually does, how obfuscated VPN servers bypass blocks and our VPN & privacy glossary.

See also. Related: What Is a Proxy.

Tools and guides related to DNS and privacy

Editorial pick
4.6 / 5

Secure your connection with NordVPN

Threat Protection blocks trackers & malware · kill switch · 30-day money-back

Deloitte audit 202430-day guarantee14M+ users
See the offer
Everything you need to know.

Frequently asked questions

What is DNS?

DNS (Domain Name System) is the internet's phonebook: it translates human-friendly domain names like example.com into the numeric IP addresses computers use to find each other. When you type a web address, your device asks a DNS resolver for that domain's IP, gets the answer, and then connects to the site. Without DNS you'd have to remember raw IP addresses for every site. It runs constantly in the background - every website, app and email lookup depends on it.

How does DNS resolution work?

In steps. Your device asks a DNS resolver (usually run by your ISP or a provider like Cloudflare/Google). If the resolver doesn't have the answer cached, it queries the root servers, then the TLD servers (for .com, .org, etc.), then the domain's authoritative name server, which returns the IP. The resolver caches the result for a set time (TTL) and hands it back to you, and your device connects. All of this typically happens in milliseconds, and caching at multiple levels keeps it fast.

Can my ISP see my DNS queries?

By default, usually yes. Traditional DNS is unencrypted, so the resolver you use - often your ISP's - sees every domain you look up, which is effectively a log of every site you visit, even when the sites themselves use HTTPS. Your ISP can record, sell, or be compelled to hand over that history, and on public Wi-Fi others on the network can observe it too. DNS is one of the biggest, least-noticed privacy leaks in everyday browsing.

How do I make DNS private?

Two layers. Encrypt DNS with DoH (DNS over HTTPS) or DoT (DNS over TLS), which hides your lookups from your ISP and network - most browsers and OSes now support it, and you can point to a privacy-respecting resolver. Better still, route all traffic through a VPN: the VPN handles DNS through its own encrypted tunnel, so neither your ISP nor the local network sees your queries or your destinations. Also test for DNS leaks to confirm your real resolver isn't exposed.

What is a DNS leak?

A DNS leak happens when, despite using a VPN, your DNS queries still go to your ISP's resolver instead of through the VPN tunnel - exposing the sites you visit even though the rest of your traffic is encrypted. It's caused by misconfiguration, IPv6 handling, or apps bypassing the tunnel. A trustworthy VPN routes DNS inside the tunnel and prevents leaks; you should verify with a DNS leak test, since a leak quietly defeats much of the privacy you're paying for.