strange ping and traceroute results
Shachar Shemesh
shachar at shemesh.biz
Mon Nov 21 09:20:45 IST 2016
On 20/11/16 07:01, Shlomo Solomon wrote:
> When I try ping or traceroute to www.google.com, I get strange results.
> Both utilities "think" that www.google.com is at 213.57.*.*, but those
> addresses belong to my Internet provider - Hotnet.
>
> What am I missing?
>
> [solomon at shlomo1]$ ping www.google.com
> PING www.google.com (213.57.23.29) 56(84) bytes of data.
> 64 bytes from 213.57.23.29: icmp_seq=1 ttl=59 time=17.1 ms
> 64 bytes from 213.57.23.29: icmp_seq=2 ttl=59 time=16.8 ms
> 64 bytes from 213.57.23.29: icmp_seq=3 ttl=59 time=17.1 ms
>
> [solomon at shlomo1]$ sudo traceroute www.google.com
> traceroute to www.google.com (213.57.24.55), 30 hops max, 60 byte packets
> 1 router-1.solomon (10.0.0.138) 1.010 ms 1.007 ms 1.006 ms
> 2 core-213-57-3-7.ptr.hotnet.net.il (213.57.3.7) 15.379 ms 15.741 ms 16.551 ms
> 3 ae7.101.hfa.mx-lns.con.hotnet.net.il (213.57.3.221) 36.177 ms 36.182 ms 36.178 ms
> 4 core-213-57-3-217.ptr.hotnet.net.il (213.57.3.217) 17.736 ms 17.736 ms 17.733 ms
The DNS resolving google.com guesses your gegraphical location, and
gives you an answer that is nearest where you are. If you use another
DNS to query the domain, you will get a different IP:
216.58.218.196 from
http://mxtoolbox.com/SuperTool.aspx?action=a%3awww.google.com&run=toolpage
74.125.22.103 from https://www.ultratools.com/tools/dnsLookupResult
216.58.209.68 from http://ping.eu/nslookup/
If you are dead set on using a different IP than your local one, you can
use this trick to do this.
Shachar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20161121/840e48da/attachment-0001.html>
More information about the Linux-il
mailing list