This is a discussion on ping website within the A Brief History of Cprogramming.com forums, part of the Community Boards category; ping www.yahoo.com ping: unknown host www.yahoo.com if i ping a website and the web server is down, i will get ...
If I'm correct, "ping" sents a requests via UDP and simply counts the time until it gets an Ack message. After 16 seconds, I suppose it just gives up.
Sent from my iPadŽ
If ping receives server name instead of ip, it should firstly resolve the name...
So before actual ICMP packet the NBNS is sent, asking what is the IP of the server
If no response is received during the timeout then message is printed that the host is unknown
If the host ip is resolved sucessully but it does not respons to the ICMP request the timeout message is printed (4 times by default)
The first 90% of a project takes 90% of the time,
the last 10% takes the other 90% of the time.