// learn Β· networking Β· 10 min

What happens when you type a URL?

The most-asked tech interview question, animated. Five chapters take you from keystroke to pixels: DNS, TCP, TLS, HTTP, and Render. Pace it yourself β€” nothing autoplays.

Animated explanation of what happens when you type a URL into a browser β€” DNS resolution, TCP three-way handshake, TLS handshake, HTTP request and response, and browser render pipeline. Step-by-step interactive lesson built for IT students and engineers preparing for system design interviews.
// before you start
you should know
  • Β·What an IP address roughly is (a number that identifies a machine)
  • Β·Comfortable opening a browser and typing a URL
  • Β·Bonus: rough idea of what 'a server' is
by the end you'll

Explain β€” to yourself, to an interviewer β€” every layer that runs between pressing Enter and the page appearing. Five chapters, pace yourself.

pace: 10 minutes total

// chapter 1 / 5
// chapter 01 Β· DNS resolution

Names get turned into IP addresses. The resolver does this for you in a single recursive query, but behind the scenes it walks the DNS tree from root β†’ TLD β†’ authoritative server.

browseryouresolver1.1.1.1root .* a.root-servers.net.com TLDa.gtld-servers.netauthoritativens1.example.com
step 1 / 6

Before anything moves β€” names vs IPs

You typed example.com and hit enter. But networks don't actually use names β€” they use IP addresses (like 93.184.216.34). DNS (Domain Name System) is the giant distributed phonebook that turns names into IPs. Your browser asks a helper called a 'resolver' to do that lookup.

// key insight

DNS is hierarchical. Every dot in a domain name is a delegation boundary. example.com is delegated by .com which is delegated by the root.

DNS resolution
back to /learnspot a bug or a better explanation? tell us