Most Common interview Question.
Typing google.com
... and Hit Enter.
Is it a URL?
Now, let's turn into a properurl like.
Does this site prefer Https? yes
now browser turns in to https://google.com.
Is the URL in the browser cache?
cache-control: max-age
should the cached content be revalidated ?
cache-control: must-revalidate
Is the hostname in the brower's cache?
Yes! Let's use that IP address.
Is the hostname in the operating system's cache?
Yes ! Let's use that Ip address
Check /etc/hosts and resolve it.
* A and AAAA are address records: mapping from name to IP address
* PTR is a reverse mapping from IP address to name
* NS is a pointer to a name server
* Other record types: SOA,CNAME,MX,TXT
- Send the DNS Request
More info: HandshakeTCP