看到一本教材上的DNS的迭代解析过程,感觉有问题,后来查阅多个资料,基本确定确实有问题,我理解的DNS域名解析流程
假设客户机要查询www.abc.123.com
1.先查询本地的DNS缓存记录,如果有,则不需要向本地域名解析服务器查询,没有进行第2步。windows下我们也可以通过 ipconfig /displaydns 查看缓存记录
2.向本地域名解析服务器查询,本地DNS服务器会先查询自己的高速缓存,有则返回给客户机解析的结果,没有则进行第3步
3.本地DNS服务器向根域名服务器查询,根域名返回顶级DNS服务器的地址
4.顶级服务器接收到本地DNS服务器的请求后,返回权限服务器的地址
5.本地DNS服务器向权限DNS服务器发出请求后,得到解析结果,返回给客户机,并缓存。
以上是我的理解, 如果有误,请您一定要留言指出,谢谢~~