2010-07-27 17:41 | tag: cloud, aws, google
DNSサーバをGoogle Public DNSに設定しているPCからAmazon Cloud Frontにアクセスすると、CloudFrontのドメインの名前解決時にアメリカのサーバのIPアドレスが返されるため日本からのアクセスが遅くなります。
事務所のネットワーク(KDDI回線)からpingを打った結果を以下に示します。
国内DNSサーバ使用時 (平均 約24ms):
caolila:~ maeda$ ping -c5 **************.cloudfront.net PING **************.cloudfront.net (216.137.53.111): 56 data bytes 64 bytes from 216.137.53.111: icmp_seq=0 ttl=54 time=24.773 ms 64 bytes from 216.137.53.111: icmp_seq=1 ttl=54 time=21.872 ms 64 bytes from 216.137.53.111: icmp_seq=2 ttl=54 time=24.064 ms 64 bytes from 216.137.53.111: icmp_seq=3 ttl=54 time=24.919 ms 64 bytes from 216.137.53.111: icmp_seq=4 ttl=54 time=24.175 ms --- **************.cloudfront.net ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 21.872/23.961/24.919/1.095 ms
Google Public DNS使用時 (平均 約130ms):
caolila:~ maeda$ ping -c5 **************.cloudfront.net PING **************.sfo4.cloudfront.net (216.137.37.196): 56 data bytes 64 bytes from 216.137.37.196: icmp_seq=0 ttl=47 time=130.509 ms 64 bytes from 216.137.37.196: icmp_seq=1 ttl=47 time=131.790 ms 64 bytes from 216.137.37.196: icmp_seq=2 ttl=47 time=129.234 ms 64 bytes from 216.137.37.196: icmp_seq=3 ttl=47 time=130.216 ms 64 bytes from 216.137.37.196: icmp_seq=4 ttl=47 time=129.394 ms --- **************.sfo4.cloudfront.net ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 129.234/130.229/131.790/0.917 ms