What happens when we enter an URL in the browser?
Some basics first
URL?
URL = Uniform Resource Locator.
A URL is the address of a given unique resource on the Web. The resource can be an HTML page, image file, etc.
DNS?
DNS = domain name server.
it maps an URL with its IP address. ( An IP address is a unique address that identifies a device on the internet )
What happens when we enter an URL in the browser?
After clicking the search button, The browser checks if the URL is available in the DNS entry cache.
It checks browser cache, os cache, router cache, and internet service provider cache. If not available, the Internet service provider s DNS makes a query to find the IP address of the URL.
IP address is returned.
Browser initiates the HTTP request to the IP address.
The IP address returns the required response based on the request.
The response is displayed in the browser.
=================