当前位置:网站首页>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 :
边栏推荐
猜你喜欢

Authority design of SaaS system based on RBAC

电子学:第011课——实验 10:晶体管开关

Introduction to the main functions of the can & canfd comprehensive test and analysis software lkmaster of the new usbcan card can analyzer

CVPR 2022 Oral 2D图像秒变逼真3D物体

什么是SKU和SPU,SKU,SPU的区别是什么

Opencv minimum filtering (not limited to images)

电子学:第014课——实验 15:防入侵报警器(第一部分)

420-二叉树的层序遍历2(429. N 叉树的层序遍历、515.在每个树行中找最大值、116.填充每个节点的下一个右侧节点指针、104.二叉树的最大深度、111.二叉树的最小深度)

c#磁盘驱动器及文件夹还有文件类的操作

取消word文档中某些页面的页眉
随机推荐
2022年毕业生求职找工作青睐哪个行业?
TCP的那点玩意儿
To understand the difference between Gram-positive and Gram-negative bacteria and the difference in pathogenicity
电子学:第010课——实验 8:继电振荡器
Force buckle 272 Closest binary search tree value II recursion
Est - il sûr d'ouvrir un compte d'actions maintenant via le lien d'ouverture de compte coiffé?
Startup, shutdown and restart of Oracle and MySQL on Linux
什么是SKU和SPU,SKU,SPU的区别是什么
Bat start NET Core
Dietary intervention reduces cancer treatment-related symptoms and toxicity
php数组函数大全
June training (day 25) - tree array
云计算考试版本1.0
Authority design of SaaS system based on RBAC
Looking for b-end product manager after years? I almost ruined myself
【莫比乌斯反演】
深度学习系列45:图像恢复综述
TCP and UDP
Mining microbial dark matter -- a new idea
Luogu p2048 [noi2010] super Piano (rmq+ priority queue)