Original link: Explain what happens when you enter a URL into the browser, as detailed as possible
Explain step by step what happens when you enter a URL into the browser, as detailed as possible.
Answer
This topic does not have the so-called complete correct answer, this topic can let you go down at any point in any way, as long as you are familiar with this point. Here is an approximate flow:
- The browser looks for the IP address that corresponds to the input URL to the DNS server.
- The DNS server returns the IP address of the Web site.
- The browser establishes a TCP connection on port 80 based on the IP address and the destination Web server
- The browser gets the HTML code for the requested page.
- The browser renders the HTML within the Display window.
- When the window is closed, the browser terminates the connection to the server.
The most interesting of these is the 1th and 2nd steps (domain name resolution). We enter the URL (domain name) is an alias of the IP address, within a DNS, a domain name corresponding to an IP address. The Domain Name System (DNS) works by matching the domain name with its IP address. DNS is distributed and has hierarchical relationships.
Although a domain name server only records a small subnet host name and IP address, but all the domain name server to work together, you can be the entire network domain name and their IP address. This means that if a domain name server cannot find the IP address of a request domain name, it will make a request to the other domain name server to look for.
Additional reference Links: What happens after you enter a URL
Explain what happens when you enter a URL into the browser, as detailed as possible (go)