This is a record 前端面试的话术集锦第二十篇博文——高频考点(输入 URL 到页面渲染的整个流程)
and I will keep updating this blog post. ❗❗❗
Use this classic interview question to connect the knowledge you have learned about browsers and network chapters before.
The first is query. If intelligent analysis DNS
is done in this step , the address with the fastest access speed will be provided back.DNS
IP
1. DNS
DNS
The function is to query specific information through domain names IP
.
Because IP
there is a combination of numbers and English ( IPv6
), which is not conducive to human memory, domain names appeared. You can think of a domain IP
name as an alias, DNS
and you want to query the real name of the alias.
TCP
The query has already been performed before the handshake , DNS
and this query is done by the operating system itself. When you want to visit www.baidu.com in your browser , you will perform the following operations:
-
The operating system will first query the local cache
IP
-
DNS
If not, it will query the server configured in the system. -
If it is still not available at this time, it will go directly to
DNS
the root server to query. This step of query will find outcom
the server responsible for this first-level domain name. -
Then, go to the server to query
baidu
the second-level domain name -
Next, the third-level domain name query is actually configured by us. You