帮我分析分析这个ping的结果

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
头像
九天星
帖子: 1440
注册时间: 2007-07-14 20:45

帮我分析分析这个ping的结果

#1

帖子 九天星 » 2018-01-11 12:34

代码: 全选

wlp2s0@wlp2s0-computer:~$ ping www.sina.com.cn
PING spool.grid.sinaedge.com (61.158.251.244) 56(84) bytes of data.
64 bytes from 244.251.158.61.ha.cnc (61.158.251.244): icmp_seq=2 ttl=54 time=20.8 ms
64 bytes from 244.251.158.61.ha.cnc (61.158.251.244): icmp_seq=3 ttl=54 time=24.9 ms
64 bytes from 244.251.158.61.ha.cnc (61.158.251.244): icmp_seq=4 ttl=54 time=16.8 ms
64 bytes from 244.251.158.61.ha.cnc (61.158.251.244): icmp_seq=5 ttl=54 time=16.5 ms
64 bytes from 244.251.158.61.ha.cnc (61.158.251.244): icmp_seq=6 ttl=54 time=16.8 ms
64 bytes from 244.251.158.61.ha.cnc (61.158.251.244): icmp_seq=7 ttl=54 time=16.8 ms
64 bytes from 244.251.158.61.ha.cnc (61.158.251.244): icmp_seq=8 ttl=54 time=17.2 ms
64 bytes from 244.251.158.61.ha.cnc (61.158.251.244): icmp_seq=9 ttl=54 time=17.0 ms
64 bytes from 244.251.158.61.ha.cnc (61.158.251.244): icmp_seq=10 ttl=54 time=16.5 ms

前一部分244.251.158.61.ha.cnc是什么意思?
头像
astolia
论坛版主
帖子: 6396
注册时间: 2008-09-18 13:11

Re: 帮我分析分析这个ping的结果

#2

帖子 astolia » 2018-01-12 21:04

PTR记录

代码: 全选

$ dig -x 61.158.251.244 +short
244.251.158.61.ha.cnc.
头像
九天星
帖子: 1440
注册时间: 2007-07-14 20:45

Re: 帮我分析分析这个ping的结果

#3

帖子 九天星 » 2018-01-13 20:11

那更疑惑了,PTR记录怎么会出现在ping里呢?
头像
astolia
论坛版主
帖子: 6396
注册时间: 2008-09-18 13:11

Re: 帮我分析分析这个ping的结果

#4

帖子 astolia » 2018-01-16 12:01

iputils的ping工具的代码就是这么写的
https://github.com/iputils/iputils/blob ... ng.c#L1552
你不想看它就用-n参数,或者换成inetutils的ping
回复