当前位置:网站首页>域名解析耗时是什么?域名解析耗时影响因素有哪些?
域名解析耗时是什么?域名解析耗时影响因素有哪些?
2022-06-11 03:54:00 【中科三方】
域名解析耗时是将域名解析获得对应IP地址,并返回给客户端这个过程所消耗的时间。
当我们对某个域名发起访问,并不是直接就能对响应站点发起访问的,需要借助DNS获取域名与IP地址对应关系,在取得解析记录之后,才能发起访问。
解析过程的具体流程大致如下:
(1)客户端对某个域名发起访问。
(2)浏览器会首先对浏览器、系统缓存以及本机HOSTS文件等本地信息进行查询,如果有结果直接告知客户端,解析过程结束。
(3)如果本地没有结果,浏览器就会请求递归服务器,递归服务器有结果就会告知客户端,解析过程结束。
(4)如果递归服务器没有结果,就会委托递归服务器进行全球递归查询,首先请求根域名服务器。
(5)根域名服务器告知递归服务器域名所在的顶级域名服务器,递归服务器对顶级服务器发起请求。
(6)顶级服务器告知递归服务器域名所在的权威域名服务器,权威域名服务器将解析记录告知递归服务器。
(7)递归服务器将结果再告知客户端,解析过程结束。
由此可见,影响域名解析耗时的因素有以下几点:
(1)本地缓存
如果本地缓存中有域名和IP地址的对应关系,就会直接在本机获取结果,无需进行全球递归查询,这样解析用时就大大缩短,但缓存对于解析安全有较大影响。
(2)递归服务器
一般而言,我们无法决定用户使用何种DNS Server,大部分初级用户使用的是本地ISP自动获取的DNS Server,部分用户则使用第三方DNS Server比如Open DNS或者Google DNS。
不过你可以建议你的用户使用Google DNS (8.8.8.8 和8.8.4.4),该DNS Server会比电信或网通自动获取的DNS Server快许多。
(3)权威域名服务器
权威域名服务器是影响域名解析耗时的关键,一般的解析服务器都是单节点单线路,如果域名距离较远,可能就会因为跨域跨网造成较大的延迟,如果域名的访问量大,还会造成线路的拥堵。所以为了减少解析时间,建议选择性能较好,多节点,多线路的权威域名服务器。
边栏推荐
- 6. 表格标签
- Final review of software engineering notes (short answer)
- 什么样的人才是幸福的?
- Matlab reports an error when trying to use * * * as a function problem, and tries to execute script PCA as a function:
- Exam item management system based on SSM
- ETH 中继接口
- Eth relay interface
- Market prospect analysis and Research Report of surround packing machine in 2022
- Student teacher examination management system based on SSM framework
- 强烈推荐这款神器,一行命令将网页转PDF!
猜你喜欢

2022爱分析· 隐私计算厂商全景报告 | 爱分析报告

Large factory outsourcing or self research company? How to choose a job for a tester?

Matlab reports an error when trying to use * * * as a function problem, and tries to execute script PCA as a function:

Shell script binary encryption

Docker swarm installing MySQL Cluster

This artifact is highly recommended. One line command will convert the web page to PDF!

SQL注入关联分析

【SignalR全套系列】之在.Net6中实SignalR通信

Google 有哪些牛逼的开源项目?

JMeter piezometric interface programming North
随机推荐
Summary of C language implementation of BP neural network
How to invest in programming knowledge and reduce the impact of knowledge failure
Radar emitter modulation signal simulation (code)
Construction of esp8266/esp32 development environment
A Security Analysis Of Browser Extensions
Simulation of radar emitter modulated signal
大厂外包or自研公司?测试人找工作怎么选?
[pan micro E9 development] single sign on Kingdee eas
app直播源码,平台登录页面实现和修改密码页面实现
Market prospect analysis and Research Report of marking laser in 2022
Samsung Galaxy S21 ultra and Apple iPhone 13 Pro Max: which one should you choose
Record the problem of Galaxy Kirin V10 server version once: an error is reported when installing KVM
Exam item management system based on SSM
[CNN]|平移不变性
Google 有哪些牛逼的开源项目?
Build local source 2.0 for Galaxy Kirin server version
如何做编程知识投资及减少知识失效的影响
GPS Beidou time service, NTP makes network clock synchronization more accurate
SQL注入关联分析
Comparison of four delivery modes of Message Oriented Middleware