진취적 삶
섹션10 Route 53 본문
DNS
Domain name system : 사람에게 친숙한 호스트 이름을 대상 서버 IP주소로 번역
www.google.com ⇒ 172.217.18.36
Domain registrar : amzon route 53
- Top Level Domain (TLD) : com , us ,in ,gov, org
- Second Level Domain (SLD) : google.com ,amazon.com
- Sub Domain : www.example.com
- domain Name : api.www.example.com
- fully qualified Domain Name = FQDN = http://api/www.example.com.
route 53 을 위해서 mycool.com 을 구매했으며 이 도메인이 elastic load balancer 인
my-elb.us-west2-elb.com을 가리키게끔 할면 별칭을 사용하자
Amazon Route 53
- 고가용성 ,확장성을 갖춘 완전히 관리되며 권한있는 DNS
- 53 인 이유는 전통적인 DNS 포트
route 53 -Record Types
- A - maps a hostname to IPv4
- AAAA -maps a hostname to IPv6
- CNAME - maps a hostname to another hostname
- the target is a domain name which must have a A or AAAA
- NS - name servers for the hosted zone
route 53 - hosted zones
- a container for records that define how to reduce traffic to a domain and its subdomains
- public hosted zones - contains records that specify how to route traffic on the internet
- private hosted zones - contain records that specify how you route traffic within one or more VPC
route 53 - Records TTL (Time To Live )
클라이언트에게 결과를 캐시하도록 요청
- high TTL - e.g 24 시간
- less traffic on Route 53 24시간동안 캐시가 되니깐 요청을 적게 보낸다 그러나 클라이언트가 오래된 데이터를 받을 가능성 있음
- low TTL - e.g 60 초
- more traffic on Route 53 오래된 데이터를 받을 가능성이 적어진다
- 데이터가 빠르게 바뀐다.
CNAME vs Alias
- CNAME :
- Points a hostname to any other hostname.
- Only for non root domain (ex. something.mydomain.com)
- Alias :
- points a hostname to an AWS Resource
- works for ROOT DOMAIN and NON ROOT DOMAIN
- free of charge
- cannot set an EC2 DNS name
Route 53 - Routing Policies
- simple 여러개의 dns 등록 가능
- weighted 각각의 레코드에 가중치 분배
- failover 인스턴스가 비정상일 경우 다른 인스턴스로 리다이렉트
- latency based 지연시간이 가장 짧은 리소스로 리다이렉트
- geolocation 사용자의 실제 위치를 기반으로 한다.
- multi-value answer - routing traffic to multiple resources
- geoproximity 편향을 통해서 지리적 위치 설정
GoDaddy를 위해 도메인을 구매했으며 , Route 53 을 DNS 서비스 제공자로 사용하려고 한다.
→ 공용 호스팅 영역을 생성하고 타사 Registerar NS 래코드 업데이트 하기
'AWS SAA' 카테고리의 다른 글
섹션8 고가용성 및 스케일링성:ELB 및 ASG (0) | 2023.07.15 |
---|---|
섹션 9 AWS 기초:RDS + Aurora+ ElasticCache (0) | 2023.07.15 |
섹션 11 클래식 솔루션 아키텍처 토론 (0) | 2023.07.15 |
섹션 1 AWS 공인 SAA (0) | 2023.07.15 |
섹션3 AWS 시작하기 (0) | 2023.07.15 |