What happened after you input the url in the browser?

Ref: https://zhuanlan.zhihu.com/p/133906695

input url

  • when you are typing, browser starts checking history, bookmark to find possible matches.

  • give you intelligent auto-complete

  • some browser like chrome will even load pages from cache

  • browser will first check local hosts file whether it has the rules of this domain. If yes, directly use ip address from local hosts file;

  • a DNS resolver queries a DNS server that provides a record either for which the server is authoritative, or it provides a partial result without querying other servers.

  • In a recursive query, a DNS resolver queries a single DNS server, which may in turn query other DNS servers on behalf of the requester. For example, a simple stub resolver running on a home router typically makes a recursive query to the DNS server run by the user's ISP.

browser send HTTP request to web server

Last updated