Misc

What happens when you type in a URL in an address bar in a browser?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

  1. The browser searches for the record of the domain name IP address in the DNS in the following order:
  • Browser cache
  • Operating system cache
  • The DNS server configured on the user's system (can be ISP DNS, public DNS, ...)
  1. If it couldn't find a DNS record locally, a full DNS resolution is started.
  2. It connects to the server using the TCP protocol
  3. The browser sends an HTTP request to the server
  4. The server sends an HTTP response back to the browser
  5. The browser renders the response (e.g. HTML)
  6. The browser then sends subsequent requests as needed to the server to get the embedded links, javascript, images in the HTML and then steps 3 to 5 are repeated.

TODO: add more details!