1. Chrome搜索自身的DNS缓存
2. 搜索操作系统自身的DNS缓存(浏览器没有找到缓存或缓存已经失效)
3. 读取本地HOST文件
4. 浏览器发起一个DNS的系统调用
5. 宽带运营商服务器查看本身DNS缓存
6. 运营商服务器发起一个迭代的DNS解析的请求
7. 运营商服务器把结果返回给操作系统内核同时缓存起来
8. 操作系统内核把结果返回给浏览器
9. 最终浏览器难道了域名对应的IP地址
10. 浏览器获得域名对应的IP地址后,发起HTTP"三次握手"
11. TCP/IP连接建立后,浏览器向服务器发送HTTP请求,包括请求头和请求体
12. 服务器向浏览器返回响应结果,包括响应头和响应体
13. 浏览器收到响应之后进行渲染
在Chrome中通过chrome://net-internals/#dns可以查看Chrome浏览器的DNS缓存






网友评论