What-happens-type-url-into-browser-and-press-enter

What-happens-type-url-into-browser-and-press-enter

September 11, 2021

dns query

get the ip of the target domain

browser cache

firefox(about:networking#dns) firefox_dns_cache

/etc/hosts

os cache

  1. macos 查看 dns 请求日志 sudo log stream –predicate ‘process == “mDNSResponder”’ –info

dns resolver

/etc/resolv.conf

  1. arp -a 查看有没有 dns 服务器的 mac 地址
  2. ARP request for the nameserver
  3. send dns query to get the ip of the domain

arp 获取 gateway 的 mac 地址

向 gateway 发送 ip packet

References

  1. keyborad-interrput
  2. Chrome 是怎么判断地址栏输入的东西是不是网址? 这就是第一步😂-omnibox
  3. firefox dns
  4. ARP
Last updated on