There is an age old interview question “What happens when you type google.com into your browser’s address box and press enter?”

This article is to give an simple answer of it which is limited to Web knowledge. The reference at the end of the article gives the complete answer.

  1. The query is submitted to the ISP. Within the ISP, the DNS takes the Domain name and turns it into an IP address.
  2. A request is sent to the desired IP address via HTTP. The request finds the fastest possible path to the server with the specified IP. It is not a direct journey. It requires hopping from server to server until we arrive.
  3. The requested server figures out exactly what we’re asking for. The server builds us the right content, often pulling information from database. The server responds with any combination of HTML, CSS, and JavaScript.

Reference

[1] https://github.com/alex/what-happens-when/blob/master/README.rst

Leave a Reply

Your email address will not be published. Required fields are marked *