A CNAME (Canonical Name) record is a type of DNS record that maps an alias name to a true, or “canonical,” domain name. Instead of pointing a subdomain to a specific IP address, a CNAME record points it to another domain name.
When a user visits a subdomain configured with a CNAME, the DNS resolver looks up the alias, sees it points to a canonical domain, and then looks up the IP address of that canonical domain to complete the connection.
Table of Contents
Common use cases for CNAME records
- Standardizing subdomains: The most common use is pointing
www.yourdomain.comto your root domainyourdomain.com. This ensures that both versions lead to the same content. - External Service Integration: Services like Microsoft 365, Shopify, or email marketing tools like MailerLite often require you to add CNAME records. This allows their servers to authenticate your domain and handle specific tasks (like serving a landing page) under your own branding.
- Managing Multiple Services: If you have several subdomains (e.g.,
blog.yourdomain.com,shop.yourdomain.com) that are all hosted on the same external platform, you can point them all to a single canonical address provided by that platform. If the platform’s IP address changes, you only need to update the record in one place.
How to add a CNAME record in the mybox panel
Managing your CNAME records is handled within the domain management section of your dashboard.
- Log in to the mybox panel.
- Navigate to the Domains section in the side menu.
- Click on the name of the domain you wish to edit.
- Select the DNS Management or Manage DNS option.
- Click the + Add Record button and enter the following:
- Name: The subdomain alias (e.g.,
wwworblog). - Type: Select CNAME from the dropdown.
- Value: The target domain it should point to (e.g.,
yourdomain.com). - TTL: You can typically leave this at the default setting.
- Name: The subdomain alias (e.g.,
- Click Add to save the changes.
Practical Implications
- The Root Domain Restriction: According to DNS standards, you cannot create a CNAME record for a root domain (e.g.,
yourdomain.com). Root domains must use A or AAAA records. CNAMEs are strictly for subdomains. - Record Conflicts: You should not create a CNAME record for a name that already has another record type assigned to it. For example, if
bloghas a CNAME record, it should not also have an MX or TXT record, as this can cause resolution failures. - Propagation Time: Like all DNS changes, CNAME updates can take up to 24 hours to fully propagate across the global network, though they often become active much sooner.
Summary
CNAME records provide a flexible way to manage aliases and integrate third-party services into your mybox infrastructure. By pointing one name to another, you simplify your configuration and ensure that your various subdomains always resolve to the correct destination.