A CNAME (Canonical Name) Record is a DNS record that creates an alias from one domain or subdomain to another domain name.
Instead of pointing directly to an IP address, a CNAME record points to another hostname.
Example
| Alias | Points To |
|---|---|
| blog.yourdomain.com | www.example.com |
In this example, visitors accessing blog.yourdomain.com will be directed to www.example.com.
Why Use a CNAME Record?
- Create aliases for domains and subdomains.
- Simplify DNS management by pointing multiple hostnames to a single domain.
- Automatically follow IP address changes of the target domain.
Common Uses
- Pointing www.yourdomain.com to yourdomain.com.
- Connecting subdomains to third-party services such as Google Workspace, Microsoft 365, Shopify, or Cloudflare.
- Managing multiple services without needing to update IP addresses manually.
Important Note
CNAME records should generally not be used for mail server hostnames referenced in MX records, as this can cause email delivery issues. Always follow your email provider's DNS configuration guidelines.
Need help configuring DNS records for your domain? Contact Plushoster Support:
WhatsApp: +92 327 7709991-2
sales@plushoster.com
www.plushoster.com
