当前位置:网站首页>域名解析过程
域名解析过程
2022-04-22 20:15:00 【别急,还差一行代码】
以www.adc.edf.org为例,网址随便编的,主要看过程。
- 在浏览器地址栏输入www.abc.edf.org,首先操作系统会检查本地hosts文件(Windows电脑在C:\Windows\System32\drivers\etc\hosts,Mac为~/etc/hosts),如果本地hosts文件没有该域名到IP的映射,则接着会查询本地DNS缓存,如果本地DNS缓存也没有,则操作系统会去TCP/IP配置中的首选DNS服务器上进行查询。
- 客户端发送查询报文"query www.adc.edf.org"至DNS服务器,DNS服务器首先检查自身缓存,如果存在记录则直接返回结果。
如果记录老化或不存在,则:
(1)DNS服务器向根域名服务器发送查询报文"query www.adc.edf.org",根域名服务器返回顶级域.org 的权威域名服务器地址。
(2)DNS服务器向 .org 域的权威域名服务器发送查询报文"query www.adc.edf.org",得到二级域.edf.org 的权威域名服务器地址。
(3)DNS服务器向 .edf.org 域的权威域名服务器发送查询报文"query www.adc.edf.org ",得到主机 abc 的IP记录,存入自身缓存并返回给客户端。
版权声明
本文为[别急,还差一行代码]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_41613281/article/details/124326283
边栏推荐
- Microservice architecture from 0 to 1, build the whole process record, hand-in-hand teaching, serialization
- Some operations of MySQL 5.6 under Linux
- 金仓数据库KingbaseES之null和“ ”的区别
- 【无标题】LeetCode 396 旋转函数[数学 找规律] HERODING的LeetCode之路
- What if I don't understand? Google's 540 billion parameter new model can explain the laugh point and guess the movie through Emoji expression
- 面试千万不要这么说,“不喜欢开发,所以选择测试”
- 播客丨元宇宙那些事儿
- C process runs the asynchronous echo of CMD command
- firewalld dbus接口使用指南
- Activity result API usage and source code analysis
猜你喜欢

金仓数据库KingbaseES的连接方法

sys_ctl启动kingbase单机服务时报错:could not bind IPv4 address “0.0.0.0“: Address already in use

Selenium automatic pop-up processing
![【无标题】LeetCode 396 旋转函数[数学 找规律] HERODING的LeetCode之路](/img/7a/c365daf5a61f02cb3cc8d7ec044283.png)
【无标题】LeetCode 396 旋转函数[数学 找规律] HERODING的LeetCode之路

An error occurs when starting Kingbase stand-alone service: invalid value for parmeter "bindpuplist": "0-95"

396. Rotation function (mathematical law + iterative method)

Why is x16 slower than X8?

Solve the problem of log printing when kingbasees inserts data into PG mode stand-alone database

【H5】微信端H5页面制作

day29
随机推荐
Filebeat
Implementation of calico official website network topology: Based on ENSP and vmvare
Screen adaptation of Android interview questions + Aidl
微服务高性能高可用架构设计
微服务架构从0到1,搭建全过程记录,手把手教学,连载中...
Lithography giant ASML broke the news: the chip is too short, and they are starting to dismantle the washing machine!
396. 旋转函数(数学规律 + 迭代法)
Activity Result API 使用与源码分析
【H5】微信端H5页面制作
ZTNA (Zero Trust Network Access)
Acrobat Pro DC tutorial, how to use password to protect PDF files?
金仓数据库KingbaseES的连接方法
顶测科技整理转行过程中一定要避免的问题
Activity result API usage and source code analysis
什么是浏览器同源策略?
[program source code] graduation project - film website
启动kingbase单机服务时报错:invalid value for parmeter “bindcpulist”:”0-95”
面试千万不要这么说,“不喜欢开发,所以选择测试”
Format for creating Zimbra LDAP users using LDAP clients
Security features of kingbasees