DNS name resolution principle [] --2019-08-07 11:18:53

Original: http://106.13.73.98/__/191/

        Most network communication is based on TCP / IP protocols, and TCP / IP is based on IP address, it can only identify as "202.96.134.133" Such an IP address to communicate on the computer network, but does not recognize the domain name. We can not remember a lot of sites like this one IP address, so when we visited the site, it is more desirable enter the domain name in the browser address bar, you can see the pages you need. Thus, DNS服务器it was born, we can name it "translated" into the corresponding IP address.

The so-called DNS server


        The DNS (Domain the Name System) is the Domain Name System abbreviation, which is used TCP / IP network, the services it provides are used to convert the host name or domain name to an IP address. The basic operating principle as shown below:
Here Insert Picture Description

Full DNS resolution process


Here Insert Picture Description
When the user inputs the address bar, such as: when www.baidu.com, DNS parsing roughly the following procedure:

  1. First, check your browser's own cache, there is no corresponding IP address This domain name (whether before parsed), and if so, rendering is completed.
  2. If the browser does not cache (called a professional point miss), the browser will check the operating system cache have been resolved without a corresponding domain name.
    Process control system also has a name resolution, through the windows of the hosts defined in the file, if you were here a domain name corresponding to the IP address specified, then the browser will be the first to use this IP address.
    Here Insert Picture Description
  3. If the domain name so far has not been hit, it will really request the local domain name server - LDNS , to resolve the domain name. This server is generally somewhere in your city, not very far away from you, and the performance of these servers are good, generally cached DNS result, about 80% of the domain name resolves to complete here.
  4. If LDNS not yet hit the jump directly to the Root Server (root name server) request resolution. Root name server returns to LDNS a queried domain gTLD Server (primary domain name server) address, which is the top international domain name server, such as: .com .cn .org and so on. At this point, LDNS again gTLD Server Send request.
  5. Accept the request of the gTLD Server query and returns the corresponding domain name Name Server address is the site registered domain name server.
  6. LDNS again Name Server initiated request, Name Server to find the target IP according to the mapping table, and returned to LDNS .
  7. At this time, the LDNS the analysis results returned to the user, while the cache address of the corresponding IP.

Reprint:
https://www.cnblogs.com/gopark/p/8430916.html
https://blog.csdn.net/m0_37812513/article/details/78775629

Original: http://106.13.73.98/__/191/

Guess you like

Origin www.cnblogs.com/gqy02/p/11314190.html