Internet flow work
Example Scenario:1 Objective : You want to visit www.example.com . Entering the URL : You type www.example.com into your browser’s address bar and hit Enter. DNS Resolution : Step 1 : Your browser checks if it has the IP address for www.example.com cached from a previous visit. If not, it sends a DNS request to your router. Step 2 : Your router, which may have its own DNS cache, checks if it has the IP address. If not, it forwards the DNS request to your ISP’s DNS server or a public DNS service like Google’s (8.8.8.8). Step 3 : The DNS server looks up www.example.com and returns the IP address, let’s say 93.184.216.34 , back to your router. Step 4 : Your router forwards the IP address to your browser. Making the HTTP Request : Step 1 : Your browser now knows the IP address of www.example.com , so it creates an HTTP request to 93.184.216.34 asking for the webpage. Step 2 : The HTTP request is sent from your device with private IP 192.168.1.2 with source port 10001 ...