What happens when you enter a URL in your browser?
- Kane Morgan
At a high level:
- User types in URL
- Request goes to Domain Name Server (assuming the info is not cached) which returns IP address of the URL to the browser
- The browser request page from the IP address
- Server at IP address proceses the request and return HTML page
- Browser renders the HTML
The above steps are optimized at different levels:
- Browser, OS, ISP may chache the mapping of domain name and IP – If information is found, then request is not routed further
- Routing to DNS is first to a Recurssive DNS, which caches the information if it was requested earlier. If not found, it passes the request to other Recurssive DNSs. If still not found, then the request is made to an Authoritative DNS, which is the manager of the domain and maintains all details related to the domain (A record, etc)
- HTML/ associated JS, CSS, image, etc files are also cached at browser, Load balancers, edge servers to allow for quicker access

Google