Creates an alias that points to another domain name
The CNAME (Canonical Name) record creates an alias from one domain name to another. Instead of pointing directly to an IP address, a CNAME points to another domain name, which then resolves to an IP address. This is useful for pointing multiple subdomains to the same destination without duplicating IP addresses.
CNAME records are commonly used for services like CDNs, cloud hosting, and SaaS applications where the actual IP address may change. The canonical name (target) can be updated in one place, and all CNAME records pointing to it automatically follow.
Important: A CNAME record cannot coexist with other record types for the same name, and you cannot use a CNAME at the zone apex (bare domain).
alias.domain.com. IN CNAME target.domain.com.www.example.com. 3600 IN CNAME example.com.This makes www.example.com an alias for example.com. Any request to www.example.com will resolve to the same IP as example.com.