As the title states. I was trying to ping a bunch of servers whose existence I am not sure of. There are 10 servers in all. Two of them got ping timed out while the other eight have could not find host. The 2 timed out ones show an IP which times out too on pinging. I did a quick nslookup on these servers and they did not have any DNS entries. What is the difference between "could not find host" and "timed out" when pinging fails?
|
|
|||
|
|
|
Pinging a computer is a lot like sending a piece of mail. Let's say I want to send a ping to Alright, so we have an IP address, what now? Now we have to route it. An IP address is a lot like the street name - It gives you a specific place, but doesn't tell you where that street is (Well, you could keep that information in a massive table, but it would be HUGE, and also mostly useless. Why keep track of the coordinates of every road in every country when you only send mail to your grandmother?). There is additional information to fix this issue - a Zip code. You may not know where the street is, but you know that the mail system in that zip code will, and because zip codes are somewhat ordered (bear with me), you know how to get it to that zip code. With computers, this is called a MAC address. A computer always knows what MAC addresses it's connected directly to, and what IPs they know how to route. When a computer or router needs to send a packet, it looks up which MAC address is responsible for handling that IP, and then sends the packet along to that system. If there is no system responsible for that IP, it returns Now, if the mail gets all the way to the target, they still have to send a reply. Normally, this is quick and easy, and you can just measure the time between when you send the message and received the reply. But sometimes, the reply gets lost in the mail. Or maybe grandma is asleep, and forgot to check her mail. Either way, you don't receive a reply, even after waiting a whole week! Eventually you just give up. With computers, this is As to your question for the computers without DNS entries, most routers use themselves as a DNS cache, and add fake DNS entries for the computers that request DHCP leases from them if the computer submits a hostname when requesting a DHCP lease. This is why it's sometimes possible to ping a computer's hostname. Windows systems also track NetBIOS names (usually, the hostnames of windows computers that are connected on the same subnetwork and have sharing enabled), and will try to resolve these to IP addresses if requested. I can't remember if this works with |
|||||||||||||||
|
|
Well, this has a little to do with the OSI model and a little to do with network schema. Ping Timed Out usually means that something is blocking the ping from going through. Device Not Found literally means Ping was able to go out and look for the device and it was unable to locate it. Ping operates on layer one. If the network card is turned on and pinged it will be found. That's about all you can do, it verifies that the device is physically there. If the device is not found, there is no NIC where it is looking. If it times out it is possible that something like a firewall is blocking it. Ping was unable to complete so it's possible something is there, but Ping cannot tell. |
|||
|
|
|
|
|||
|
|