DNS: The Internet's Address Book

Learn how domain names become IP addresses and how DNS resolvers find answers efficiently.

By Rishipal Singh · · 5 min read

A DNS resolver follows the hierarchy from root to the authoritative answer.
Visual guide: A DNS resolver follows the hierarchy from root to the authoritative answer.

People remember names more easily than numbers, but internet routers move data using IP addresses. The Domain Name System (DNS) connects the two: it helps a browser find the network address associated with a domain name.

Resolvers follow a trail

When you request a domain, your device usually asks a recursive DNS resolver. If the resolver does not already have a valid cached answer, it can ask a root name server where to find the domain's top-level domain servers, then ask those servers for the domain's authoritative name servers. The authoritative server returns the record for the requested name.

Records carry different answers

An A record maps a name to an IPv4 address; an AAAA record maps it to IPv6. Other records support mail routing, aliases, and verification. DNS answers have a time-to-live (TTL), which tells caches how long the information can be reused.

Why caching matters

Caching makes repeat lookups faster and reduces work for DNS servers. During a domain migration, old cached records may remain until their TTL expires, which is why DNS changes can take time to appear everywhere.

DNS translates names to addresses, but it does not itself establish a web connection or encrypt its contents. Those are handled by later network steps.

Practice: identify the authoritative answer

A recursive resolver needs the address for learn.example. Which DNS server is the final source for the domain's configured records?

Reveal the explanation

The authoritative name server for example provides the configured record. Root and top-level-domain servers help the resolver find that authority.