分页: 1 / 1

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

发表于 : 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是什么意思?

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

发表于 : 2018-01-12 21:04
astolia
PTR记录

代码: 全选

$ dig -x 61.158.251.244 +short
244.251.158.61.ha.cnc.

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

发表于 : 2018-01-13 20:11
九天星
那更疑惑了,PTR记录怎么会出现在ping里呢?

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

发表于 : 2018-01-16 12:01
astolia
iputils的ping工具的代码就是这么写的
https://github.com/iputils/iputils/blob ... ng.c#L1552
你不想看它就用-n参数,或者换成inetutils的ping