Explain what happens when you enter a URL into your browser, in as much detail as possible

Source: Internet
Author: User
Tags domain name server

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:

  1. The browser looks for the IP address that corresponds to the input URL to the DNS server.
  2. The DNS server returns the IP address of the Web site.
  3. The browser establishes a TCP connection on port 80 based on the IP address and the destination Web server
  4. The browser gets the HTML code for the requested page.
  5. The browser renders the HTML within the Display window.
  6. 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.

Explain what happens when you enter a URL into your browser, in as much detail as possible

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.