How does a website works

The collection of webpages is called website.

When we enter something like lakshthink.tech.blog the request goes to one of many special computers on the internet known as Domain Name Servers. i.e., DNS.

All these requests are routed through various routers and switches.

In other words, a user enters a URL into a browser. The request is passed to a domain name server.

The domain name server returns an IP address for the server that hosts the website (eg., 192.168.1.86).

The browser requests the index.html or required files from the web server using the IP address specified by the domain name server.

The web server returns the page to the IP address specified by the browser requesting the page. The page may also contain links to other files on the same server, such as images, which the browser will also request.

The browser collects all the information and displays to your computer in the form of web page.

Leave a comment