What happens when you ping a website

This tutorial explains what happens when you ping a website.

The content is a preview from the book – 250 Networking Interview questions and answers

Take a scenario, where a user pings the website www.tcpipguru.com from a PC. On the PC screen from where the ping is issued, the reply is from an IP address and not from the website name www.tcpipguru.com. Network communications are based on IP addresses and not domain names. When the command ping www.tcpipguru.com is typed, a DNS query is send by the PC to the DNS server IP address which is configured on the TCP/IP adapter settings of the PC, to retrieve the IP address of www.tcpipguru.com. After the IP address is received, the ICMP request (Ping request) is sent to the IP address of the website to which the server sends a reply.

The content is a preview from the book – 250 Networking Interview questions and answers