Skip to main content
短.be

CNAME Record

A DNS record that maps one domain name to another, commonly used to point custom domains to URL shortening services.

Sep 17, 2025 · About 1 min read

Redirect

A CNAME (Canonical Name) record is a type of DNS record that maps an alias domain name to a canonical (true) domain name. When a DNS resolver encounters a CNAME record, it follows the alias to the canonical name and resolves that instead. This mechanism is fundamental to how custom domains work with URL shortening services and CDNs.

For URL shortening, CNAME records enable branded short URLs. A company creates a CNAME record pointing their custom domain (e.g., "go.company.com") to the shortening service's domain (e.g., "custom.shortener.com"). When a user visits "go.company.com/abc," the DNS resolution follows the CNAME to the shortening service, which then handles the redirect. DNS management books on Amazon explain the setup process.

CNAME records have an important limitation: they cannot coexist with other record types at the same name. This means a CNAME cannot be set at the zone apex (e.g., "company.com" without a subdomain). To work around this, some DNS providers offer ALIAS or ANAME records that provide CNAME-like functionality at the zone apex.

When configuring CNAME records for URL shortening, it is important to also set up SSL certificates for the custom domain to enable HTTPS. Many shortening services handle certificate provisioning automatically, but some require manual configuration. Cloud DNS books on Amazon cover these operational details.

Share on XHatena

Was this article helpful?

Related Terms

Related Articles

FAQ

What's the difference between a CNAME record and an A record?
An A record maps a domain directly to an IP address, while a CNAME record maps a domain to another domain name. With CNAME, no configuration change is needed when the IP address changes.
Can you set a CNAME record on a root domain?
Per DNS specifications, CNAME cannot be set on a root domain (example.com). Use ALIAS or ANAME records instead, or set the CNAME on a subdomain (www.example.com).

Ready to create a short URL?

Shorten a URL for Free