This article is reprinted from the WeChat public account "JS Daily Question", the author is Huihui. Please contact the JS Daily Question public account to reprint this article. 1. What isDNS (Domain Names System) is an Internet service that converts domain names and their corresponding IP addresses. Simply put, DNS is equivalent to a translator, responsible for translating domain names into IP addresses.
2. Domain NameA domain name is a hierarchical structure, from top to bottom, it is the root domain name, top-level domain name, second-level domain name, third-level domain name... For example, www.xxx.com, www is the third-level domain name, xxx is the second-level domain name, and com is the top-level domain name. The system has made compatibility for users, and the root domain name at the end of the domain name generally does not need to be entered. There is a domain name server at each level of the domain name, as shown below: In addition, there is the computer's default local domain name server 3. Query methodThere are two ways to query DNS:
Iterative query: If receiver B does not have the exact content that requester A needs, receiver B will tell requester A how to obtain the content, but will not make the request itself. 4. Domain name cacheWhen the domain name server is resolving, use the cache to save the mapping between the domain name and the IP address The DNS records in the computer are also divided into two cache modes:
5. Query processThe process of resolving a domain name is as follows:
The process is shown in the figure below: References https://zh.wikipedia.org/wiki/%E5%9F%9F%E5%90%8D%E7%B3%BB%E7%BB%9F https://www.cnblogs.com/jmilkfan-fanguiju/p/12789677.html https://segmentfault.com/a/1190000039039275 https://vue3js.cn/interview |
<<: Free and easy to use! This data recovery software found my video from two years ago
>>: China Mobile launches A-share listing: "Making money" but not "cutting leeks"
Friendhosting released a promotional email titled...
In 2016, the number of China Mobile's 4G user...
OneTechCloud is a Chinese hosting company founded...
1. Necessity of online physical examination In da...
[51CTO.com original article] From December 20th t...
In the past two days, an article about the curren...
CMIVPS released a Double 11 promotion plan, which...
VMISS released a 30% discount coupon during Black...
HostDare is a foreign VPS hosting company founded...
HOSTEROID is a foreign hosting company founded in...
After the rapid development in 2020, 2021 is a cr...
Ethernet is not a new technology as it has been u...
High-density cabling products and standard modula...
[51CTO.com original article] If someone asked wha...
Before formally learning MPLS, let us review the ...