How does a Website load in your browser?

Nishant MishraNishant Mishra
2 min read

Before moving forward, let’s understand some terms

DNS:-

It stands for Domain Name System. It’s like a phone book for the internet. It stores the IP (Internet Protocol) for every site. Whenever you enter a website name, DNS finds its IP address so the browser can load it.

DNS Root Server:-

In the entire world, there are only 13 root servers present. These root servers have the TLD (Top Level Domain) e.g-[.com, .io, .in, etc]. So, whenever a DNS sends a request to the DNS Root Server for an IP, the nearest root server will provide the IP in response.

Let’s Know it Deeply:-

  1. Let’s think you want to see the “ RajuBhaiya.com “, for that you will search for this on the browser. But to open the site browser requires a complete address, so it will send a request to the DNS.

  2. DNS checks its contact book, and in case the IP is not present, then it’ll contact the DNS root server. As per we understood already root server only stores the TLD (Top Level Domain).

  3. It will check the site name “ RajuBhaiya.com “. Here you can see “.com“ is a TLD so, root server provides an IP for it. After that, DNS sent a request to “.com“ for the IP.

  4. Here, “.com“ points to an Authoritative DNS Server (ADS), which is managed by the company where the domain was registered, like “GoDaddy“.

  5. So finally DNS sent a request to GoDaddy for the IP, and in the response, it got the IP. Once DNS gets the IP, it’ll store it in its cache for a specific period. After that, DNS sends the complete addresses of the site to your browser, and you will see the website.

Overall, it’s like trying to find a house without knowing the exact address; you have to keep asking people along the way. That’s how DNS works, passing the request from one server to another until the correct address is found.

FlowChart: How DNS Works:-

0
Subscribe to my newsletter

Read articles from Nishant Mishra directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Nishant Mishra
Nishant Mishra