FlyerTalk Forums

FlyerTalk Forums (https://www.flyertalk.com/forum/index.php)
-   Travel Technology (https://www.flyertalk.com/forum/travel-technology-169/)
-   -   Can a site not respond to a ping? (https://www.flyertalk.com/forum/travel-technology/1564765-can-site-not-respond-ping.html)

BigLar Mar 30, 2014 10:26 am

Can a site not respond to a ping?
 
I was having a little trouble with internet access yesterday, so the first thing I usually do is ping something like google.com (they seem to be always up). If the response comes back, I at least know that I'm getting to the DNS server and do have some sort of connection.

One site in particular seemed to be having trouble - couldn't connect etc., so when I pinged it, the requests timed out. As expected.

However, today, I was just pinging randomly, and flyertalk.com was not responding. Since it was patently up and on line, I was wondering if it's optional to respond to pings?

FN-GM Mar 30, 2014 10:31 am

Yes you can stop ICMP (Ping protocol). At work on the webservers we don't allow ICMP so you can't ping the site, although the site is live.

BigLar Mar 30, 2014 10:40 am

Another interesting thing I just noticed:


C> ping www.google.com

Pinging www.google.com [74.125.225.145] with 32 bytes of data:

Reply ..... etc.

C> ping www.flyertalk.com

Pinging flyertalk.com [98.158.194.68] with 32 bytes of data:

Request timed out

So, what happened to the "www" in front of the site name?

zkzkz Mar 30, 2014 10:58 am

Some sites block pings, some ISPs block pings as well so you might not be able to ping anything. Blocking ping requests or responses doesn't cause anything else to break but it also doesn't accomplish much either as you can just do a different kind of probe instead of ping to check for connectivity (but it's more expensive for the servers).

Some sites block all ICMP messages which actually causes real problems as they're part of the basic IP protocols. Blocking ICMP errors can cause extremely slow download speeds for users due to breaking the PMTUD protocol.

zkzkz Mar 30, 2014 11:03 am


Originally Posted by BigLar (Post 22615564)
So, what happened to the "www" in front of the site name?

The canonical name is flyertalk.com. www.flyertalk.com is just an alias for flyertalk.com:
Code:

www.flyertalk.com.      1905    IN      CNAME  flyertalk.com.
flyertalk.com.          1905    IN      A      98.158.194.68

The web server appears to respond to both virtual hosts with the same content.

This is incidentally not a good way to set things up. It means you can end up with two sets of cookies or site preferences or other state depending on which host name you connect to which can be confusing. It's much better to set up a virtual host for one of them that just does a 302 redirect to the preferred name and always use that preferred name.

angatol Mar 30, 2014 11:06 am

.....

docbert Mar 30, 2014 12:32 pm


Originally Posted by zkzkz (Post 22615682)
The canonical name is flyertalk.com. www.flyertalk.com is just an alias for flyertalk.com:

The web server appears to respond to both virtual hosts with the same content.

No, it doesn't. If you go to flyertalk.com it redirects to www.flyertalk.com.


Originally Posted by zkzkz (Post 22615682)
It's much better to set up a virtual host for one of them that just does a 302 redirect to the preferred name and always use that preferred name.

You probably mean a 301, which is exactly what they send when you access flyertalk.com. (302 will work as well, but 301 is better)

gfunkdave Mar 30, 2014 3:36 pm

In fact, not responding to pings is also the default behavior in Windows since I think Windows Vista (maybe XP).

CPRich Mar 30, 2014 7:11 pm

All of my project's Production servers are set to not respond to pings.


All times are GMT -6. The time now is 10:55 am.


This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.