User access to the basic process of the site

Source: Internet
Author: User
Tags purchase domain name

1: Users visit www.baidu.com This site, the system will first look at the DNS cache or Hosts file information, determine if there is a domain name corresponding IP resolution record, if any, directly obtain an IP address. Generally, the first request, the DNS cache is not logged, and the Hosts file is generally used in internal testing.


2: If the client local hosts file or DNS cache does not have a corresponding resolution record, the system will send the resolution request to the Ldns (local DNS) server, if the LDNS server local cache has a corresponding resolution record will return the IP address directly to the client. If not, Ldns will be responsible for continuing the request to other DNS servers


3:ldns from the DNS system (.) The root begins to request parsing of the www.baidu.com domain name and a series of lookups for each level of the DNS service system. Finally, the baidu.com domain name corresponding to the authorized DNS server, and this authoritative DNS server is the Enterprise purchase domain name used to manage the domain name resolution of the server, this authorization server will have www.baidu.com corresponding IP resolution records. If not at this time, it indicates that the enterprise's Domain name manager did not set the resolution for www.baidu.com.


4:baidu.com authorized DNS servers send www.baidu.com final IP resolution records to LDNS


After the 5:LDNS server receives the IP address from the authorization server, it sends the IP to the client browser and caches the domain name and IP resolution so that the next time it is returned to the client more quickly, the cache records will not expire for a specified period (DNS TTL value control).


6: The client browser obtains the IP corresponding to the domain name, and after that, the browser will request to obtain the IP corresponding to the site server. The Web server receives the request and responds to processing. Returns the content requested by the customer to the customer's browser.


The Windows view local cache DNS Resolution logging command is as follows:

C:\> Ipconfig/displaydns

Clear the DNS resolution logging command for the Windows client local cache as follows:

C:\> Ipconfig/flushdns

The hosts domain name resolution records under Windows System are as follows:

C:\Windows\system32\drivers\etc\hosts



User access to the basic process of the site

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.