当前位置:网站首页>域名解析耗时是什么?域名解析耗时影响因素有哪些?
域名解析耗时是什么?域名解析耗时影响因素有哪些?
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)权威域名服务器
权威域名服务器是影响域名解析耗时的关键,一般的解析服务器都是单节点单线路,如果域名距离较远,可能就会因为跨域跨网造成较大的延迟,如果域名的访问量大,还会造成线路的拥堵。所以为了减少解析时间,建议选择性能较好,多节点,多线路的权威域名服务器。
边栏推荐
- How PTP helps several major operators meet 5g timing requirements
- Shopping and retail backstage management system of chain supermarket based on SSM framework
- 从功能测试进阶自动化测试,熬夜7天整理出这一份3000字超全学习指南【附网盘资源】
- Detailed explanation of network time synchronization (NTP network timing) of video monitoring system
- Large factory outsourcing or self research company? How to choose a job for a tester?
- VNC remote configuration of Galaxy Kirin server system
- How does the NTP clock server (satellite clock system) coordinate the integrated system?
- Unity prefab scene 冲突合并工具 UnityYAMLMerge
- Management system of College Students' associations based on SSM
- What great open source projects does Google have?
猜你喜欢

Detailed explanation of network time synchronization (NTP network timing) of video monitoring system

What great open source projects does Google have?

6. 表格标签

2022 love analysis · privacy computing vendor panoramic report | love Analysis Report

PMM monitoring Oracle

Red team shooting range with three-layer protection

Rational use of thread pool and thread variables

Shell script binary encryption

Pci/pcie related knowledge

编程大作战 -- 挑战高考题
随机推荐
How does the NTP clock server (satellite clock system) coordinate the integrated system?
Docker uses PXC to build a MySQL Cluster (mysql:5.7.24)
Build local source 2.0 for Galaxy Kirin server version
Google 有哪些牛逼的开源项目?
How to invest in programming knowledge and reduce the impact of knowledge failure
Skynet source code analysis make
SSLStrip 终极版 —— location 劫持
Several time synchronization methods of Beidou timing system (GPS timing equipment)
Red team shooting range with three-layer protection
A Security Analysis Of Browser Extensions
关于重复发包的防护与绕过
What kind of people are happy?
Manual testing cannot be changed to automated testing. What is missing?
[cnn]| translation invariance
Unity prefab scene conflict merge tool unityyamlmerge
高考结束,可以干什么事情,专业应该如何选择?-- 来自一个在校大学生的肺腑之言
Linq. pdf
Market prospect analysis and Research Report of electronic pelletizing counter in 2022
SQL注入关联分析
1_ Attribute management function