A hosted zone in AWS Route 53 is essentially a container for DNS records for a domain. Each hosted zone corresponds to a domain name, and it contains various DNS records that define how requests for that domain should be routed. There are two main types of hosted zones:
A (Address) Record
example.com → 192.0.2.1Name: example.com
Type: A
Value: 192.0.2.1
AAAA (IPv6 Address) Record
example.com → 2001:0db8:85a3:0000:0000:8a2e:0370:7334Name: example.com
Type: AAAA
Value: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
CNAME (Canonical Name) Record
www.example.com → example.comwww.example.com to example.com).Name: www.example.com
Type: CNAME
Value: example.com
MX (Mail Exchange) Record
example.com → mail server mail.example.comName: example.com
Type: MX
Value: 10 mail.example.com
10 is the priority of the mail server. Lower values indicate higher priority.TXT (Text) Record
example.com → "v=spf1 include:_spf.google.com ~all"Name: example.com
Type: TXT
Value: "v=spf1 include:_spf.google.com ~all"
NS (Name Server) Record
example.com → ns-1234.awsdns-56.org, ns-789.awsdns-34.co.ukName: example.com
Type: NS
Value: ns-1234.awsdns-56.org
ALIAS Record
example.com) and AWS-specific resources (like S3 buckets, CloudFront distributions, etc.). It avoids the CNAME restriction for the root domain.example.com → S3 bucket example-bucket.s3-website-us-east-1.amazonaws.comexample.com) to an AWS resource.Name: example.com
Type: A (ALIAS)
Value: example-bucket.s3-website-us-east-1.amazonaws.com
SRV (Service) Record
_sip._tcp.example.com → _sip._tcp.sipserver.example.comName: _sip._tcp.example.com
Type: SRV
Value: 10 60 5060 sipserver.example.com
PTR (Pointer) Record
192.0.2.1 → host.example.comName: 1.2.0.192.in-addr.arpa
Type: PTR
Value: host.example.com
example.com to an EC2 instance using an A record or an ALIAS record for AWS resources.www.example.com → example.com (using CNAME) or redirecting with an A record.example.com to specify the mail servers that will handle emails for your domain.sub.example.com) to be handled by another DNS provider, you would add NS records to point to the external DNS servers.cdn.example.com → d1234567890abc.cloudfront.net."v=spf1 include:_spf.google.com ~all".