Top Banner
そうだ!CNAMEでこう!! 『CNAMEカメレオンパターン』 AWS勉強会 in 海道札幌! Developers.IO Meetup 05 classmethod.jp 1 2014/06/28 三井誠
12

CNAMEカメレオンパターン - Developers.IO Meetup 05

Aug 09, 2015

Download

Internet

Makoto Miida
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  1. 1. CNAME CNAME AWS in Developers.IO Meetup 05 classmethod.jp 1 2014/06/28
  2. 2. AWS MSP AWSaws-cli Twitter: @macotomii classmethod.jp 2
  3. 3. EC2 IP DNS IP IP classmethod.jp 3
  4. 4. EC2DNS Public DNS ec2-XX-XX-XX-XX.ap-northeast-1.compute.amazonaws.com Private DNS ip-YY-YY-YY-YY.ap-northeast-1.compute.internal classmethod.jp 4
  5. 5. EC2DNS classmethod.jp 5 Elastic IP (EIP) Elastic IP (EIP)
  6. 6. Public DNSping [ec2-user@ip-172-31-2-116 ~]$ ping -nc 3 ec2-54-92-7-41.ap-northeast-1.compute.amazonaws.com PING ec2-54-92-7-41.ap-northeast-1.compute.amazonaws.com (172.31.20.97) 56(84) bytes of data. 64 bytes from 172.31.20.97: icmp_seq=1 ttl=64 time=4.53 ms 64 bytes from 172.31.20.97: icmp_seq=2 ttl=64 time=2.37 ms 64 bytes from 172.31.20.97: icmp_seq=3 ttl=64 time=2.38 ms classmethod.jp 6 [ec2-user@ip-192-168-0-163 ~]$ ping -nc 3 ec2-54-92-7-41.ap-northeast-1.compute.amazonaws.com PING ec2-54-92-7-41.ap-northeast-1.compute.amazonaws.com (54.92.7.41) 56(84) bytes of data. 64 bytes from 54.92.7.41: icmp_seq=1 ttl=63 time=3.42 ms 64 bytes from 54.92.7.41: icmp_seq=2 ttl=63 time=3.24 ms 64 bytes from 54.92.7.41: icmp_seq=3 ttl=63 time=16.5 ms ? IP
  7. 7. EC2 classmethod.jp 7 [ec2-user@ip-172-31-2-116 ~]$ cat /etc/resolv.conf! ; generated by /sbin/dhclient-script! search ap-northeast-1.compute.internal! nameserver 172.31.0.2 [ec2-user@ip-192-168-0-163 ~]$ cat /etc/resolv.conf! ; generated by /sbin/dhclient-script! search ap-northeast-1.compute.internal! nameserver 192.168.0.2 VPC
  8. 8. Public DNS IP Private DNS IP Public DNS EC2 http://docs.aws.amazon.com/ja_jp/AWSEC2/latest/UserGuide/using-instance-addressing.html IP DNS DNS IP IP classmethod.jp 8 Public DNS Private DNS AWS IP AWS (VPC) VPC IP IP VPC IP IP VPC IP AWS (Classic) AWS IP IP
  9. 9. RRDNS CNAME classmethod.jp 9
  10. 10. ping IPping classmethod.jp 10 [ec2-user@ip-172-31-2-116 ~]$ ping -nc 3 meetup_on_vpc1-2 PING ec2-54-92-7-41.ap-northeast-1.compute.amazonaws.com (172.31.20.97) 56(84) bytes of data. 64 bytes from 172.31.20.97: icmp_seq=1 ttl=64 time=2.32 ms 64 bytes from 172.31.20.97: icmp_seq=2 ttl=64 time=2.30 ms 64 bytes from 172.31.20.97: icmp_seq=3 ttl=64 time=2.39 ms [ec2-user@ip-192-168-0-163 ~]$ ping -nc 3 meetup_on_vpc1-2 PING ec2-54-92-7-41.ap-northeast-1.compute.amazonaws.com (54.92.7.41) 56(84) bytes of data. 64 bytes from 54.92.7.41: icmp_seq=1 ttl=63 time=3.04 ms 64 bytes from 54.92.7.41: icmp_seq=2 ttl=63 time=3.21 ms 64 bytes from 54.92.7.41: icmp_seq=3 ttl=63 time=3.02 ms
  11. 11. IN A 54.238.x.x .local IN A 10.200.10.10 IN CNAME ec2-xx-xx-xx-xx.ap-northeast-1.compute.amazonaws.com RR DHCPFQDNOK Cloud Design Pattern (CDP)CNAME>_