What Is DNS and How Does It Work?

DNS is the internet’s address book, turning names like example.com into IP addresses. Here is how a lookup works, why it matters for speed and privacy, and how to test it.

By CheckPublicIP Team

Published 2026-07-16

Every time you visit a website, your device quietly performs a DNS lookup first — the step that turns a human-friendly name like example.com into the numeric IP address computers actually use to connect. DNS, the Domain Name System, is often called the internet's phone book, and it runs billions of times a second without most people ever noticing.

Why DNS exists

People remember names; computers route with numbers. You would never memorize 93.184.216.34, but example.com is easy. DNS bridges that gap, letting you type a name while the network gets the IP address it needs behind the scenes. It also adds flexibility: a site can change servers (and IP addresses) without changing its name, so the address you reach can move without you ever noticing.

How a DNS lookup works, step by step

  1. Your device checks its cache. If it looked up the name recently, it reuses the stored answer and skips the rest.
  2. The resolver takes over. Otherwise the query goes to a recursive resolver — usually run by your ISP or a public provider — whose job is to find the answer for you.
  3. The root and TLD servers point the way. The resolver asks a root server, which directs it to the servers responsible for .com, which in turn point to the servers that know about example.com.
  4. The authoritative server answers. The domain's own name servers return the actual IP address.
  5. The answer is cached and used. Your device connects to that IP, and the result is stored for a set time (the record's TTL) so future visits are instant.

All of this typically finishes in a few thousandths of a second.

Forward vs reverse DNS

The lookup above is forward DNS: name in, IP out. The internet also supports reverse DNS: IP in, name out, using special PTR records. Reverse lookups are widely used by mail servers to check whether an address is legitimate. You can try one on any address with our reverse DNS lookup tool, and see the network and ISP behind an IP with our IP lookup.

DNS, speed, and privacy

  • Speed. A slow or distant resolver adds lag to every new site you open. Switching to a fast public resolver can make browsing feel snappier.
  • Privacy. Traditional DNS queries are unencrypted, so your ISP — and anyone on the network — can see every domain you look up. DNS over HTTPS (DoH) and DNS over TLS encrypt those queries so they are private in transit.
  • Filtering. Some resolvers block malware and ad domains at the DNS level, stopping bad connections before they start.

The bottom line

DNS is the invisible translation layer that makes the named web usable, quietly converting the address you type into the IP address your device connects to. It shapes how fast sites load and how much of your browsing your network can see. Want to explore the number side of it? Look up any address on our IP lookup tool or start with your own on the home page.

Sources

← All articles · Check your IP address