Why can I ping google.com, but not nasa.gov?
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Puzzle4
--
Chapters
00:00 Why Can I Ping Google.Com, But Not Nasa.Gov?
00:50 Accepted Answer Score 29
01:32 Answer 2 Score 24
02:27 Answer 3 Score 9
02:51 Answer 4 Score 0
03:13 Thank you
--
Full question
https://superuser.com/questions/310464/w...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#dns #ping
#avk47
ACCEPTED ANSWER
Score 29
Because for some reason, they have not added a DNS "A record" for nasa.gov, so it does not resolve, and returns a host unknown. Most administrators do configure their DNS to respond to requests, especially for HTTP, to both the domain.com and www.domain.com. You can ping www.nasa.gov though.
Although, not in this case, another reason would be if they chose to drop ICMP ping requests, which is configured on a firewall or router.
ANSWER 2
Score 24
$ host nasa.gov
nasa.gov mail is handled by 10 ndjsnpf01.ndc.nasa.gov.
nasa.gov mail is handled by 10 ndjsnpf02.ndc.nasa.gov.
nasa.gov mail is handled by 10 ndjsnpf03.ndc.nasa.gov.
nasa.gov mail is handled by 10 ndmsnpf01.ndc.nasa.gov.
nasa.gov mail is handled by 10 ndmsnpf02.ndc.nasa.gov.
nasa.gov mail is handled by 10 ndmsnpf03.ndc.nasa.gov.
So you can send mail to username@nasa.gov
, but there is no machine nasa.gov
to connect to.
$ host www.nasa.gov
www.nasa.gov is an alias for www.nasa.gov.speedera.net.
www.nasa.gov.speedera.net is an alias for www.nasa.gov.edgesuite.net.
www.nasa.gov.edgesuite.net is an alias for a1718.x.akamai.net.
a1718.x.akamai.net has address 92.122.213.138
a1718.x.akamai.net has address 92.122.213.200
So when you ping www.nasa.gov
you are really pinging an Akamai machine via several indirections.
The NASA mail server is run by NASA directly. It doesn't reply to ping requests:
$ host ndjsnpf01.ndc.nasa.gov
ndjsnpf01.ndc.nasa.gov has address 198.117.1.121
$ whois 198.117.1.121
[...]
National Aeronautics and Space Administration NETBLK-NSI (NET-198-116-0-0-1) 198.116.0.0 - 198.123.255.255
[...]
$ ping ndjsnpf01.ndc.nasa.gov
PING ndjsnpf01.ndc.nasa.gov (198.117.1.121) 56(84) bytes of data.
ANSWER 3
Score 9
NASA's firewall is probably dropping ICMP (ping) packets, thus your pings will time out. The largest factor of latency is physical distance, the further away your target, the bigger the latency (speed of light is the top limiting factor)
ANSWER 4
Score 0
Because www.nasa.gov is added in the DNS resolver by the nasa but they did not add nasa.gov in the DNS resolver . That's why when you ping nasa.gov , DNS didn't find the ip address regarding naga.gov .