What are the common DNS record types supported by Route 53, such as A, CNAME, and MX records?
Short answer
An A record maps a domain name directly to an IPv4 address, a CNAME record maps a domain name to another domain name rather than an IP address, and an MX record specifies which mail servers are responsible for receiving email on behalf of a domain, with Route 53 also supporting…
Advertisement
AModel answer
An A record maps a domain name directly to an IPv4 address, a CNAME record maps a domain name to another domain name rather than an IP address, and an MX record specifies which mail servers are responsible for receiving email on behalf of a domain, with Route 53 also supporting other types like AAAA for IPv6 addresses and TXT for arbitrary text based verification data.
aws route53 change-resource-record-sets --hosted-zone-id ABC123 --change-batch '{"Changes":[{"Action":"CREATE","ResourceRecordSet":{"Name":"www.example.com","Type":"A","TTL":300,"ResourceRecords":[{"Value":"192.0.2.1"}]}}]}'Real-world example
A company sets up an MX record pointing to its email provider's mail servers while also configuring an A record for its main website, allowing both email delivery and web traffic to function correctly for the same domain.
Likely follow-ups
- What is the difference between a CNAME and an alias record in Route 53?
- Why can't you create a CNAME record for the root of a domain?
Related topics