CNAME-Record (EN)
ConceptDNS record type for creating an alias for another domain name
CNAME-Record
The CNAME-Record (Canonical Name) is a DNS record type that creates an alias for another domain name. It allows multiple subdomains to point to a single target domain or IP address without needing to create separate A-Records for each subdomain. CNAME-Records are particularly useful when the IP address of a resource changes, as only the target A-Record needs to be updated while all CNAME entries automatically point to the new address.
Architecture
flowchart TD A[www.example.com] -->|CNAME| B[example.com] C[blog.example.com] -->|CNAME| B D[shop.example.com] -->|CNAME| B B -->|A-Record| E[192.0.2.1]
In Context
- Typically used together with A-Records, MX-Records and TXT-Records
- Related to: A-Record, Alias, DNS, Domain
- Example use: Redirecting www.example.com to example.com