当前位置:网站首页>DNS protocol and its complete DNS query process
DNS protocol and its complete DNS query process
2022-06-25 08:10:00 【Shrek】
List of articles
DNS Overview of the agreement
DNS(Domain Names System), The domain name system , The Internet is a service , Is to carry on the domain name and corresponding IP Address translation server
simply ,DNS Equivalent to a translator , Be responsible for translating the domain name into ip Address
- IP Address : A long string of numbers that uniquely mark computers on the network
- domain name : It's a string of names separated by dots Internet The name of a computer or computer unit , Used to locate and identify the computer during data transmission

A query
- recursive query : If A request B, that B As the receiver of the request, you must give A The answer you want

- Iterative query : If the recipient B There is no requester A The exact content needed , The receiver B Will tell the requester A, How to get this content , But I don't ask myself

Generally, weLocal DNS The serverThe way to send a request isrecursive query, Because we only need to make one request ,Local DNS The serverWe will return the final request result . andLocal DNS The servertowardsOther domain name serversThe process of the request isIterative query, Because every timeDomain name serverOnly the results of a single query are returned , The next level of query consists ofLocal DNS The serverDo it yourself .
The query process
The process of domain name resolution is as follows :
- First
Search the browser's DNS cache, Maintain a domain name and IP Table of addresses - If you don't hit , Continued to
Search for operating system DNS cache - If you don't hit , The operating system sends the domain name to the local domain name server ,
The local domain name server uses recursion to query its own domain name DNS cache, If the search is successful, the result - If the local domain name server DNS Cache miss , The local domain name server reports to the superior
The domain name server performs iterative queriesLocal domain name servertowardsRoot domain serverInitiate request , The root domain name server returns the address of the top-level domain name server to the local serverLocal domain name serverGet thisTop-level domain serverAfter the address of , Make a request to it , Get the address of the domain name serverLocal domain name serveraccording toDomain name serverSend a request to the address of , Finally, we get the corresponding IP Address
Local domain name serverWhat will be obtainedIP AddressReturn tooperating system, At the same time, I will IP The address is cachedoperating systemtake IP Address returned tobrowser, At the same time, I will IP Address cache start- thus , The browser gets the corresponding IP Address , And will IP Address cache start
The flow is shown in the following figure :
边栏推荐
猜你喜欢

Static web server

五分钟快速搭建一个实时人脸口罩检测系统(OpenCV+PaddleHub 含源码)

Drawing of clock dial

Authority design of SaaS system based on RBAC

Sword finger offer (medium level)

socket问题记录

To understand the difference between Gram-positive and Gram-negative bacteria and the difference in pathogenicity

STM32CubeMX 学习(5)输入捕获实验

Electronics: Lesson 013 - Experiment 14: Wearable pulsed luminaries

Apache CouchDB 代码执行漏洞(CVE-2022-24706 )批量POC
随机推荐
【红旗杯?】补题
六月集训(第25天) —— 树状数组
协议和服务的区别?
Not afraid of losing a hundred battles, but afraid of losing heart
Electronics: Lesson 010 - Experiment 8: relay oscillator
c#ColorDialog更改文本颜色和FontDialog更改文本字体的使用示例
Network model -- OSI model and tcp/ip model
50. pow (x, n) - fast power
Ubuntu18下登录mysql 5.7设置root密码
不怕百战失利,就怕灰心丧气
現在通過開戶經理發的開戶鏈接股票開戶安全嗎?
CVPR 2022 Oral 2D图像秒变逼真3D物体
TCP与UDP
How to create a new branch with SVN
使用pytorch搭建MobileNetV2并基于迁移学习训练
双周投融报:资本埋伏Web3基础设施
【补题】2021牛客暑期多校训练营1-3
电子学:第011课——实验 10:晶体管开关
Electronics: Lesson 008 - Experiment 6: very simple switches
2022年毕业生求职找工作青睐哪个行业?