For me it is not clear how the internet is working. Let's say we have host (local IP:192.168.12) and the gateway/router (local IP: 192.168.0.1 / extern IP: 18.104.22.168)
Now the client (192.168.0.12) wants to visit http://www.facebook.com.
- The client makes an arp request
- The router replies the arp request and returns his MAC-address.
- The client sends the package to the router over ethernet with the MAC-address.
- The router sends a DNS Request for facebook.com. Let's say the first DNS-Server returns the IP of facebook.com (example: 22.214.171.124). The DNS-Server returns the IP-Address to the router.
Now, makes the router also en ARP-Request to find the MAC-address of the server (IP-address: 126.96.36.199)? If not, does this only work with the IP-Address? Does ARP only play a role in the local network?
Thank you very much!