很多时候想通过域名的方式测试网络设备,但往往只能通过IP访问,今天发现原来可以通过几个命令来实现!


H3C设备配置:

[H3C]dns resolve                  
[H3C]dns server 114.114.114.114   
[H3C]ping www.baidu.com
  PING www.baidu.com (115.239.211.112):
  56  data bytes, press CTRL_C to break
    Reply from 115.239.211.112: bytes=56 Sequence=1 ttl=53 time=8 ms
    Reply from 115.239.211.112: bytes=56 Sequence=2 ttl=53 time=7 ms
    Reply from 115.239.211.112: bytes=56 Sequence=3 ttl=53 time=7 ms
    Reply from 115.239.211.112: bytes=56 Sequence=4 ttl=53 time=9 ms
    Reply from 115.239.211.112: bytes=56 Sequence=5 ttl=53 time=7 ms
  --- www.baidu.com ping statistics ---
    5