Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 1.31 KB

WhatHappensWhenYouTypeGoogle.com.md

File metadata and controls

47 lines (28 loc) · 1.31 KB

What Happens when you Type Google.com?

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

DNS Lookup: Browser Cache

 Is the hostname in the brower's cache?
 Yes!  Let's use that IP address.

DNS Lookup: OS Resolver

 Is the hostname in the operating system's cache?
 Yes ! Let's use that Ip address
 
 Check /etc/hosts and resolve it. 

DNS RECORD TYPES

  * 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 on DNS queries

Next TCP Three way handshake happens.

TCPHANDSHAKE

More info: HandshakeTCP