Key highlights
- A step-by-step guide on how to add a CNAME record in Bluehost.
- Learn how CNAME records help in connecting Google Workspace, CDNs and other third-party services.
- Fix common issues like CNAME not resolving, incorrect targets and conflicts with other DNS records.
- Ensure your subdomains are organized, optimized for SEO and properly configured for seamless performance.
- Leverage user-friendly DNS management, one-click WordPress integration and expert 24/7 support for hassle-free hosting.
Introduction
Think of the last time you tried to find a friend’s new house without their exact address – frustrating, right? The internet works similarly. Without clear directions, users can struggle to find websites. That’s where CNAME records come in. They act like the GPS of the internet, ensuring visitors reach the correct web address effortlessly.
Whether you’re setting up a blog at “blog.[example].com” or want your online store at “shop.[example].com”, CNAME records are the behind-the-scenes heroes making it all possible.
In this guide, we’ll walk you through how to add a CNAME record, troubleshoot common issues and ensure everything works seamlessly.
What is a CNAME record?
A CNAME (Canonical Name) record is a kind of DNS (Domain Name System). It connects one domain or subdomain to another. Unlike an A record, which maps a domain to an IP address, a CNAME record maps one domain name to another, allowing multiple domain aliases to exist without changing the IP address.
For example, if you want blog.[yourwebsite].com to show the same content as [yourwebsite].com, you can use a CNAME record. This will link “blog” to your main site. This is helpful for things like custom email, CDN setups and other platforms.
By setting up a CNAME record in the right way, you make sure that the domain redirects smoothly. This will not hurt your website’s performance.
The importance of CNAME setup for your domain
A well-configured CNAME record helps with domain management, website performance and third-party integration. Here’s why it matters:
- Centralized domain management: Instead of updating multiple A records when your primary domain’s IP changes, a CNAME record allows all linked subdomains to automatically reflect the update, saving time and effort.
- Faster website performance with a CDN: Pointing subdomains to a Content Delivery Network (CDN) via a CNAME record improves website speed by serving content from the nearest server, reducing latency and enhancing user experience.
- Better branding through organized subdomains: Easily manage subdomains like blog.[yourwebsite].com or store.[yourwebsite].com while keeping your website structure clear and professional. CNAME records simplify linking these subdomains to different services.
- Easy email verification: Many email providers, such as Google Workspace and Microsoft 365, require CNAME records to verify domain ownership. This helps prevent email deliverability issues and ensures secure communication.
- SEO & URL consistency: Using a CNAME record to point www.[yourwebsite].com to the root domain helps avoid duplicate content issues. This ensures search engines recognize and rank your preferred domain correctly.
Also read: What is DNS (Domain Name System) and How Does it Work?
Step-by-step guide on how to add CNAME record in Bluehost
Adding a CNAME record follows a similar process across most domain providers, helping you point subdomains effortlessly. In these steps we will see how to add a CNAME record in Bluehost, where DNS management is simple and user-friendly.
Here’s how you can set it up.
1. Log in to your Bluehost account
- Visit your Bluehost account and enter your login credentials (email/username and password).
- Click Log In to access your Bluehost dashboard.
2. Navigate to the domains section
- Once logged in, look at the left-hand navigation menu.
- Click on Hosting, then select Settings.
- And then go-to domain section
3. Access DNS management
Method 1: Using Bluehost’s DNS manager
- Locate the domain where you want to add a CNAME record.
- Click the Manage button next to the domain name.
- In the dropdown menu, select DNS to open the DNS management page.
Method 2: Using cPanel
- Click on Advanced in the left menu to open cPanel.
- Scroll down to the cPanel and click manage.
- Go to Domains section and Click on Zone Editor.
- Find your domain and click Manage.
4. Add a CNAME record
Now that you’re in the DNS Manager, follow these steps:
- Scroll down to the CNAME (Alias) Records section.
- Click on Add Record to create a new entry.
Fill in the required details:
- Host record: Enter the subdomain you want to point. For example, if you’re setting up blog.[domain].com, enter blog as the host record.
- Points to: Enter the destination domain or service URL you want the subdomain to redirect to. This could be another domain or a third-party service (e.g., ghs.[google].com for Google Sites).
- TTL (Time to live): This determines how frequently the record updates. You can leave it at the default setting.
Once all details are entered, click Save to finalize the CNAME record addition.
Support Guide: CNAME help article
Troubleshooting CNAME setup issues: Fix common errors
Even after following the steps for how to add a CNAME record, DNS configurations can sometimes be tricky. If your CNAME record isn’t working as expected, below are some common issues and troubleshooting tips to help you resolve them efficiently.
1. CNAME record not propagating
Issue: After adding a CNAME record, it does not work immediately.
Possible causes:
- DNS propagation can take up to 24-48 hours worldwide.
- Your internet service provider (ISP) may still be caching the old records.
- The domain registrar or hosting provider has not yet updated its DNS records.
Solutions:
Use a DNS lookup tool like Whois to check propagation across multiple locations.
Clear your DNS cache using the following commands:
- Windows: ipconfig /flushdns
- macOS: sudo dscacheutil -flushcache
- Linux: sudo systemd-resolve –flush-caches
Try accessing the site using a different network or VPN to bypass ISP caching.
If the record has not propagated after 48 hours, contact your DNS provider for support.
2. Conflicting DNS records
Issue: You receive an error message when adding a CNAME record.
Possible causes:
- A CNAME record cannot coexist with other records for the same hostname.
- If an A, MX, TXT or another CNAME record already exists for the same subdomain, its addition will fail.
Solutions:
- Check existing DNS records before adding a CNAME. You can do this in your domain registrar’s DNS settings.
- Remove conflicting records if a CNAME is required. For example, if an A record exists for sub.[example].com, delete it before adding sub.[example].com CNAME target.[example].com.
- If you need multiple records for a subdomain, consider using A or ALIAS records instead of a CNAME.
3. Incorrect CNAME target
Issue: The CNAME record is added but does not resolve correctly.
Possible causes:
- The CNAME target points to an IP address instead of a hostname.
- The target domain does not exist or is misspelled.
- The target domain does not have the necessary DNS configuration.
Solutions:
Ensure the CNAME record points to a valid hostname (FQDN), not an IP address. Example:
- Correct: blog.[example].com CNAME example.net
- Incorrect: blog.[example].com CNAME 192.168.1.1
Verify that the target domain exists and is active by checking it in a browser or using the ping command.
Confirm with your hosting provider that the target domain is properly configured.
4. CNAME record not resolving
Issue: The domain is not redirecting or resolving correctly.
Possible causes:
- Your local DNS cache still holds outdated information.
- The DNS resolver used by your network is slow to update.
Solutions:
Change your DNS resolver to a public one like:
- Google DNS: 8.8.8.8 and 8.8.4.4
- Cloudflare DNS: 1.1.1.1
- OpenDNS: 208.67.222.222 and 208.67.220.220
Use NSLookup or the nslookup command to verify that the CNAME is correctly resolving: (nslookup blog.[example].com)
5. Multiple CNAME chains (Chained CNAME records)
Issue: You set up a CNAME, but it does not resolve correctly due to multiple redirections.
Possible causes:
- CNAME chaining occurs when one CNAME record points to another CNAME instead of a final destination. This can slow resolution times and may be unsupported by some DNS providers. Some DNS providers do not support multiple CNAME lookups (e.g., sub.example.com → alias.example.net → final.example.org).
Solutions:
Avoid unnecessary CNAME chains.
Instead of:
- sub.example.com CNAME alias.example.net
- alias.example.net CNAME final.example.org
Use: sub.example.com CNAME final.example.org directly.
Some CDNs and hosting providers support Flattening CNAME records, which can bypass its restrictions.
6. CNAME not working with email services
Issue: Email services are not working after adding a CNAME record.
Possible causes:
- A CNAME record on the root domain (example.com) overrides all other DNS, including MX records required for email.
- Some mail providers do not support sending emails from domains with CNAMEs instead of A records.
Solutions:
- Use an A record instead of a CNAME if email functionality is required.
- Ensure your MX records are correctly configured and have not been replaced.
- If using Google Workspace or Microsoft 365, check their DNS setup guide to ensure compliance.
Final thoughts
Setting up a CNAME record may seem intimidating, but with a bit of attention to detail, adding a record becomes a simple yet essential skill for anyone expanding their online presence. Mastering DNS records unlocks smoother management and more control over your digital journey.
Ready to take control of your online presence? With Bluehost WordPress hosting, you can effortlessly manage DNS settings, leverage one-click WordPress installations, and access 24/7 expert support for domain and hosting management. anytime.
Whether you’re launching a personal blog or scaling a business, our affordable hosting plans ensure a hassle-free experience.
Expecting high traffic? With up to 100 GB of NVMe storage and bandwidth for 100 websites, Bluehost Shared Hosting is the smart choice to elevate your site’s performance.
Get started with Bluehost today and manage your DNS settings effortlessly!
FAQs
1. Log in to Bluehost.
2. Go to Domains > DNS Management.
3. Click Add Record under the CNAME (Alias) Records section.
4. Enter Host Record (subdomain) & Destination URL.
5. Click Save and wait up to 48 hours for propagation.
If your CNAME record isn’t resolving, check for conflicts with existing A or CNAME records for the same subdomain. Also, verify that the destination URL is correct. DNS changes can take 24–48 hours to propagate, so be patient. If the issue persists, clear your DNS cache or contact Bluehost support for assistance.
To add any DNS record (A, CNAME, MX, TXT, etc.), log in to Bluehost, go to Domains > DNS Management and find the relevant record section. Click Add Record, choose the record type, enter the necessary details and save. Ensure all information is correct to avoid disruptions.
Bluehost allows you to add CNAME, A, MX, TXT and other DNS through its DNS Management panel. Simply access your domain settings, locate the DNS Manager and select the appropriate record type. Follow the prompts to enter the required details, then save your settings.