Skip to main content

Typing a URL Into a Browser

Premium

What happens when you type a URL in a browser?

First, we need to figure out the IP address associated with the domain name. How do we do that?

If the DNS record isn't cached, we start with the root server which points us to the TLD (e.g. ".com").

Let's assume we have the IP address. We need to establish a TCP connection to send a request to the website's server. How does that work?

What happens if the browser doesn't have a cache of the DNS record?

What are some possible errors we might receive from the request to the website's server?

What are some of the tradeoffs of this system for retrieving URLs?