What Happens When You Visit A Website?

A lot of things happened behind the scene that you may have no knowledge about, whenever you visit a website. Here is a list of all those things that occur when you navigate a URL.

  1. It does not matter that what browser you are using, whether it is Internet Explorer, FireFox, Safari or Chrome, when you open a website, the browser will contact the Domain Name System (DNS) server that will work to convert the human readable website name into a simple numeric IP address. This conversion is necessary because every website name is actually an alias for an IP address. Thus, DNS translates that URL into an IP address, and each site has its own special IP address.

The Domain Name System is interesting because it works in a hierarchical structure. There are multiple DNS servers circulated throughout the world, and if one DNS server does not know a specific IP address, then it will ask for another DNS server that is on top of the hierarchy. But the question arises that how does your PC/laptop know which DNS server it needs to use?

Well, your Internet Service Provider (ISP) basically sends some additional network information to your computer when you connect to the Internet. That “additional” network information incorporates which DNS server your PC should use whenever you open a website.

  • As soon as a DNS server discovers the website’s IP address you are looking for, then that IP address came back to your browser.
  • Now, your browser will use the IP address given by DNS to interact with the web server that is hosting the website you are interested to visit. After this, it will link to port number 80 on the web server through a protocol known as TCP.
  • Finally, your browser has a link to the web server of the website and your browser will then retrieve the html code of the particular page that is requested.
  • As soon as web server provides HTML code to your browser, you can see that code in the window.
  • The connection to the web server will end in case you close that specific browser window.

Leave a Reply