Hosted Zones
Overview
- A R53 Hosted Zone is a DNS DB for a domain e.g. myorg.org
- Globally resilient (multiple DNS servers)
- Created with domain registration via R53 (also can be created seperately)
- Host DNS Records (e.g A, AAAA, MX, NS, TXT...)
- Hosted Zones are what the DNS sytem refrences - Authoritative for a domain e.g. myorg.org
Public Hosted Zone
- DNS Database (zone file) hosted by R53 (Public Name Servers)
- Accessible from the public internet
- as well as from VPCs using R53 Resolver
- Hosted on
4R53 Name servers (NS) specific for the zone - use
NS recordsto point at these NS (connect to global DNS) - Resource Records (RR) created within the Hosted Zone
- Externally registered domains can point at R53 Public Zone

Private Hosted Zone
- A Public Hosted zone which is not public
-
Associated with VPCs
- only accessible in those VPCs
- using different accounts is supported via CLI/API
-
Split-view (overlapping public and private) for PUBLIC and INTERNAL use with the same one name

Split View Hosted Zones
- Records in the private hosted zone are not accessible from the public internet
- Hosted zone associated with VPCs are accessible within the VPCs

R53 CNAME vs ALIAS
Amaps aNAMEto an IP address- like catagram.ip => 1.2.3.4
CNAMEmaps aNAMEto anotherNAME- like www.catagram.io => catagram.io
CNAMEis invalid for naked/apex- Many AWS services uses a DNS name (ELBs)
- With just
CNAME- catagram.io => ELB would be invalid
Alias Records
- ALIAS records map a
NAMEto an AWS resoruce - Can be used both for
naked/apexandnormalrecords - For non
apex/naked- functions likeCNAME - For
AWS Services-default to picking ALIAS - Should be the same
Typeas what the record is pointing at - API Gatewy, Cloudfront, Elastic Beanstalk, ELB, Global Accelerator & s3