What happens when we go to a website - 1. Acquire website IP
06 Sep 2020
First, browser must know actual ip address of domain.
Let’s say target domain is www.blabla.com.
- If ip is cached in browser, simply connected to cached ip.
- If not, browser makes a system call to the OS.
- OS first look at it’s local cache. If ip is cached, OS simply returns cached ip to browser.
- If domain does not exist, it asks root DNS. root DNS responds like:
Ask dns_foo which manages "com" domain
- OS asks “dns_foo” again, then “dns_foo” responds like:
Ask dns_bar which manages "www.*.com" domain
- It goes until totally matched address is found.
- Then OS caches domain-ip address to local cache, then return it to browser.
- Browser caches domain-ip address if necessary.
References
https://d2.naver.com/helloworld/59361 https://b.luavis.kr/http2/http2-overall-operation http://americanopeople.tistory.com/115 https://www.netmanias.com/ko/post/blog/5348/dhcp-ip-allocation-network-protocol/understanding-the-basic-operations-of-dhcp