What is DNS? The Internet's Phone Book

The Domain Name System (DNS) is the infrastructure that translates human-readable domain names like google.com into the numeric IP addresses that computers use to find each other on the network. Without DNS, you would have to memorize addresses like 142.250.80.46 to visit any website.

How DNS Resolution Works

When you type a URL into your browser, a multi-step lookup process begins:

  1. Browser cache — Your browser checks if it already knows the IP for this domain from a recent lookup.
  2. OS resolver — If not cached, the operating system's stub resolver is queried. It may have a cached answer too.
  3. Recursive resolver — The query goes to a recursive DNS resolver (often run by your ISP, or a public resolver like Google's 8.8.8.8 or Cloudflare's 1.1.1.1). This server does the heavy lifting.
  4. Root servers — The recursive resolver asks one of the 13 root server clusters for the authoritative servers for the top-level domain (.com, .org, etc.).
  5. TLD servers — The TLD nameserver points to the authoritative nameservers for the specific domain.
  6. Authoritative server — Finally, the domain's own nameserver returns the IP address.

This entire process typically completes in under 100 milliseconds, and the result is cached at multiple levels so subsequent lookups are near-instant.

DNS Record Types

DNS stores more than just IP addresses. The most common record types are:

When you look up a domain in the looking glass, the DNS Records panel shows all of these record types for that domain.

DNS Security

The original DNS protocol sends queries in plaintext over UDP, which makes it vulnerable to eavesdropping and manipulation. Several technologies address this:

DNS and BGP

DNS and BGP work together to make the internet function. DNS tells your computer which IP address to connect to, and BGP tells the network how to route packets to that IP address. When you look up a domain like github.com, the looking glass first resolves it via DNS, then shows you the BGP routing information for the resolved IP.

Try It

Look up any domain to see its DNS records and BGP routing information:

See BGP routing data in real time

Open Looking Glass
More Articles
What is BGP? The Internet's Routing Protocol Explained
What is an Autonomous System (AS)?
What is a BGP Looking Glass?
How to Look Up an IP Address's BGP Route
Understanding BGP AS Paths
What is RPKI? Securing BGP Routing
What is an IP Address?
IPv4 vs IPv6: What's the Difference?
What is a Network Prefix (CIDR)?
What is an Internet Exchange Point (IXP)?
What is Peering? How Networks Interconnect
How Does Traceroute Work?
What is a CDN? Content Delivery Networks Explained
What is DNS over HTTPS (DoH)?
What is a BGP Hijack?
What are TLDs? Top-Level Domains Explained
What is Anycast? One IP, Many Servers
What is a Subnet? IP Subnetting Explained