Skip to content

How it works in practice

The CNAME is configured in the DNS zone with the destination name; the resolver performs an additional query to obtain the final IP.

The CNAME is defined in the DNS zone. For example, www.example.com. IN CNAME example.com.. When a resolver queries www.example.com, it receives the canonical name example.com and then queries the A record of example.com to obtain the IP. This adds at least one additional lookup [1]. A CNAME cannot coexist with an A, MX, or TXT record at the same name.