Does ping www.example.com & ping example.com are different?

anbu13

Reputable
Sep 9, 2014
160
0
4,760
I didn't noticed this difference until yesterday. While I used to monitor the latency often.
while I ping yahoo.com the latency is high but when I do ping www.yahoo.com
what's happening here? I understand that yahoo uses huge numbers of IP address among their servers so it pings one of that. My question is that does the 'www' matters? does it means it will ping the 'www' web server of yahoo? and without 'www' pings a random yahoo server? Looks like using 'www' pings to nearby server from my location. Little bit confused with this.

Ping image
 
Solution
This all depends on how they have the DNS setup. They can pretty much do anything they want. Many times you will get different results depending on what dns you are using for the same exact url. They are doing all kinds of tricky things to try to improve performance.

It is even more complex when you consider things like 8.8.8.8 exists in hundreds of places at the same time. This is the common google dns server.

Mostly it does not matter. You want to only deal with ip addresses. The names can actually change ip because of load balancing tricks.


anbu13

Reputable
Sep 9, 2014
160
0
4,760

Yeah I know about the domain.if I do ping yahoo.com here I didn't mention 'www' so where the ping will reach? since I didn't refer to www subdomain within yahoo.com domain. If I'm right it will reach yahoo.com domain and randomly pings an IP.
 
This all depends on how they have the DNS setup. They can pretty much do anything they want. Many times you will get different results depending on what dns you are using for the same exact url. They are doing all kinds of tricky things to try to improve performance.

It is even more complex when you consider things like 8.8.8.8 exists in hundreds of places at the same time. This is the common google dns server.

Mostly it does not matter. You want to only deal with ip addresses. The names can actually change ip because of load balancing tricks.


 
Solution

anbu13

Reputable
Sep 9, 2014
160
0
4,760


Okay. Now, I have two ping results yahoo.com with high latency www.yahoo.com with low latency. Users in my network, would go on their browser and visit www.yahoo.com (even if they type yahoo.com it turns into www.yahoo.com) with a low latency. Can I take the low latency ping result as my network's latency on yahoo? So I don't need to worry about the high latency ping result(before I thought that my network has high latency issue).
 
In general you can but there are many things yahoo has inside their web pages. If you would look you will find there are other stuff like yimg.com and a bunch of other ones they use to cram advertisement into web pages. How fast things run depends on much more than the speed to a single IP address. Most web pages open huge number of sessions to many different location without you knowing it. You can see it if you watch the resource monitor and look at all the open sessions.