当前位置:网站首页>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 :
边栏推荐
- 五分钟快速搭建一个实时人脸口罩检测系统(OpenCV+PaddleHub 含源码)
- TCP 加速小记
- socket问题记录
- 电子学:第010课——实验 8:继电振荡器
- Luogu p2048 [noi2010] super Piano (rmq+ priority queue)
- STM32CubeMX 學習(5)輸入捕獲實驗
- Authority design of SaaS system based on RBAC
- Three Siemens fire-fighting hosts fc18 are equipped with can optical transceiver for optical fiber redundant ring network networking test
- Electronics: Lesson 010 - Experiment 9: time and capacitors
- TCP stuff
猜你喜欢

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

FM信号、调制信号和载波

Electronics: Lesson 010 - Experiment 9: time and capacitors

TCP stuff

使用apt-get命令如何安装软件?

Opencv minimum filtering (not limited to images)

电子学:第008课——实验 6:非常简单的开关

Static web server

PH neutralization process modeling

C disk drives, folders and file operations
随机推荐
C examples of using colordialog to change text color and fontdialog to change text font
Luogu p6822 [pa2012]tax (shortest circuit + edge change point)
STM32CubeMX 学习(5)输入捕获实验
MySQL simple permission management
剑指offer刷题(简单等级)
Electronics: Lesson 010 - Experiment 9: time and capacitors
RMQ区间最大值下标查询,区间最值
企业全面云化的时代——云数据库的未来
[supplementary question] 2021 Niuke summer multi school training camp 1-3
Luogu p5994 [pa2014]kuglarz (XOR thinking +mst)
RMQ interval maximum subscript query, interval maximum
php数组函数大全
[Mobius inversion]
初体验完全托管型图数据库 Amazon Neptune
Est - il sûr d'ouvrir un compte d'actions maintenant via le lien d'ouverture de compte coiffé?
Machine learning notes linear regression of time series
What is SKU and SPU? What is the difference between SKU and SPU
50 pieces of professional knowledge of Product Manager (IV) - from problem to ability improvement: amdgf model tool
使用pytorch搭建MobileNetV2并基于迁移学习训练
【莫比乌斯反演】