V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
amrom
V2EX  ›  Linux

一个 ping 命令问题

  •  
  •   amrom · 2021-06-17 14:44:26 +08:00 · 1668 次点击
    这是一个创建于 1258 天前的主题,其中的信息可能已经有所发展或是发生改变。

    一段 ping 命令的执行返回:

    [root@node1 ~]# ping baidu.com
    PING baidu.com (220.181.38.148) 56(84) bytes of data.
    64 bytes from 220.181.38.148 (220.181.38.148): icmp_seq=1 ttl=49 time=35.9 ms
    64 bytes from 220.181.38.148 (220.181.38.148): icmp_seq=2 ttl=49 time=67.4 ms
    64 bytes from 220.181.38.148 (220.181.38.148): icmp_seq=3 ttl=49 time=37.6 ms
    ^C
    --- baidu.com ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2002ms
    rtt min/avg/max/mdev = 35.947/47.022/67.444/14.457 ms
    [root@node1 ~]# ping github.com
    PING github.com (13.229.188.59) 56(84) bytes of data.
    64 bytes from ec2-13-229-188-59.ap-southeast-1.compute.amazonaws.com (13.229.188.59): icmp_seq=1 ttl=42 time=121 ms
    64 bytes from ec2-13-229-188-59.ap-southeast-1.compute.amazonaws.com (13.229.188.59): icmp_seq=2 ttl=42 time=119 ms
    64 bytes from ec2-13-229-188-59.ap-southeast-1.compute.amazonaws.com (13.229.188.59): icmp_seq=3 ttl=42 time=126 ms
    ^C
    --- github.com ping statistics ---
    3 packets transmitted, 3 received, 0% packet loss, time 2003ms
    rtt min/avg/max/mdev = 119.436/122.369/126.585/3.069 ms
    [root@node1 ~]# 
    

    疑问的是 ping github 的返回中 ec2-13-229-188-59.ap-southeast-1.compute.amazonaws.com 是拿来的,ping 返回的数据格式怎么理解?

    4 条回复    2021-06-17 15:11:10 +08:00
    013231
        1
    013231  
       2021-06-17 14:57:32 +08:00
    IP 地址 Reverse DNS 的结果
    miaomiao888
        2
    miaomiao888  
       2021-06-17 14:58:42 +08:00
    CNAME
    miaomiao888
        3
    miaomiao888  
       2021-06-17 15:03:18 +08:00
    @miaomiao888 错了,这么长还带 IP 的是 rDNS
    thunderw
        4
    thunderw  
       2021-06-17 15:11:10 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5683 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 06:39 · PVG 14:39 · LAX 22:39 · JFK 01:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.