Try
↑ ↓ move↵ openesc close

Interview prep / DNS and traffic steering

Junior · DNS and traffic steering · System design interview question

What are A, AAAA and CNAME records, and why does a CNAME matter for a CDN?

Sketch your own answer first, then compare it with the one below.

A strong answer

An A record maps a name to an IPv4 address. An AAAA record maps it to an IPv6 address. A CNAME says one name is an alias for another, and the resolver then looks up the target.

A CDN usually asks you to point your name at one of its names with a CNAME. The CDN can then change the addresses behind its name for steering and failover without you touching your zone. A CNAME cannot sit at the zone apex beside other records, so providers offer an alias feature for the apex.

Sources

Learn it by running it

The dns and traffic steering lesson explains the mechanism behind this question, and its lab lets you change the parameters and watch the effect.

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms