想咨询一下美西服务器的寻址问题,直接ping谷歌的地址,要149ms,通过aws服务器寻址的ip 172.217.3.164,只需要20ms。想问一下,为什么阿里云服务器寻找的服务器效率如此低?怎么能提升这方面的效率?是不是/etc/resolv.conf中预设的域名服务器,无法分配最近的ip?需要把这两个域名更换掉吗?
阿里云的一台美西服务器:
[root@iZu1h3v1q2lZ etc]# ping www.google.com
PING www.google.com (216.58.197.100) 56(84) bytes of data.
64 bytes from hkg12s01-in-f100.1e100.net (216.58.197.100): icmp_seq=1 ttl=46 time=149 ms
64 bytes from hkg12s01-in-f4.1e100.net (216.58.197.100): icmp_seq=2 ttl=46 time=149 ms
^C
--- www.google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 149.807/149.834/149.862/0.388 ms
[root@iZu1h3v1q2lZ etc]# ping 172.217.3.164
PING 172.217.3.164 (172.217.3.164) 56(84) bytes of data.
64 bytes from 172.217.3.164: icmp_seq=1 ttl=52 time=19.7 ms
64 bytes from 172.217.3.164: icmp_seq=2 ttl=52 time=19.7 ms
64 bytes from 172.217.3.164: icmp_seq=3 ttl=52 time=19.7 ms
64 bytes from 172.217.3.164: icmp_seq=4 ttl=52 time=19.7 ms
64 bytes from 172.217.3.164: icmp_seq=5 ttl=52 time=19.7 ms
[root@iZu1h3v1q2lZ etc]# cat /etc/resolv.conf
options timeout:1 attempts:1 rotate
nameserver 10.143.22.118
nameserver 10.143.22.116
aws的一台服务器:
[ec2-user@ip-172-31-33-129 ~]$ ping www.google.com
PING www.google.com (172.217.3.164) 56(84) bytes of data.
64 bytes from sea15s11-in-f164.1e100.net (172.217.3.164): icmp_seq=1 ttl=47 time=8.48 ms
64 bytes from sea15s11-in-f4.1e100.net (172.217.3.164): icmp_seq=2 ttl=47 time=8.51 ms
64 bytes from sea15s11-in-f164.1e100.net (172.217.3.164): icmp_seq=3 ttl=47 time=8.57 ms
64 bytes from sea15s11-in-f4.1e100.net (172.217.3.164): icmp_seq=4 ttl=47 time=8.54 ms
64 bytes from sea15s11-in-f164.1e100.net (172.217.3.164): icmp_seq=5 ttl=47 time=8.52 ms
64 bytes from sea15s11-in-f4.1e100.net (172.217.3.164): icmp_seq=6 ttl=47 time=8.54 ms
64 bytes from sea15s11-in-f164.1e100.net (172.217.3.164): icmp_seq=7 ttl=47 time=8.67 ms
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。