当前位置: 代码迷 >> 网络设计维护 >> ping www.163.com与ping 163.com返回的结果为什么不一样?解决方案
  详细解决方案

ping www.163.com与ping 163.com返回的结果为什么不一样?解决方案

热度:4976   发布时间:2013-02-26 00:00:00.0
ping www.163.com与ping 163.com返回的结果为什么不一样?
C:\Documents and Settings\david>ping www.163.com

Pinging www.cache.gslb.netease.com [220.181.28.212] with 32 bytes of data:

Reply from 220.181.28.212: bytes=32 time=34ms TTL=49
Reply from 220.181.28.212: bytes=32 time=33ms TTL=52
Reply from 220.181.28.212: bytes=32 time=33ms TTL=52
Reply from 220.181.28.212: bytes=32 time=33ms TTL=52

Ping statistics for 220.181.28.212:
  Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
  Minimum = 33ms, Maximum = 34ms, Average = 33ms

C:\Documents and Settings\david>ping 163.com

Pinging 163.com [220.181.31.8] with 32 bytes of data:

Reply from 220.181.31.8: bytes=32 time=34ms TTL=240
Reply from 220.181.31.8: bytes=32 time=33ms TTL=240
Reply from 220.181.31.8: bytes=32 time=33ms TTL=240
Reply from 220.181.31.8: bytes=32 time=35ms TTL=243

Ping statistics for 220.181.31.8:
  Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
  Minimum = 33ms, Maximum = 35ms, Average = 33ms

------解决方案--------------------------------------------------------
大型门户网站一般都有N多的服务器、N多的IP地址
所以用DNS来做负载均衡喽。一个域名指向多个IP地址,客户作DNS查询时就会被分配到随机答案
------解决方案--------------------------------------------------------
你买个域名xxx.com就知道了
在域名控制面板里可以把aaa.xxx.com、bbb.xxx.com、ccc.xxx.com、、、www.xxx.com和xxx.com指向不同IP地址
对域名的拥有人来说,前缀是可以自定义的
------解决方案--------------------------------------------------------
探讨
你买个域名xxx.com就知道了
在域名控制面板里可以把aaa.xxx.com、bbb.xxx.com、ccc.xxx.com、、、www.xxx.com和xxx.com指向不同IP地址
对域名的拥有人来说,前缀是可以自定义的
  相关解决方案