How to Create a CNAME Record For Your Domain
How to Create a CNAME Record For Your Domain
The CNAME record will point your domain or subdomain to the IP address of the destination hostname. So, if the IP of the destination hostname changes, you won’t need to change your DNS records as the CNAME will have the same IP.
You are welcome to use this video guide or follow the text instructions further in the article.
NOTE: Please don’t set up a CNAME record for a bare domain e.g., yourdomain.tld (@ hostname) since it may affect the operation of the domain’s MX records and, consequently, the email service. In most cases you will need to create a CNAME record for www (or other subdomain) and URL Redirect for @ that will point to http://www.yourdomain.tld/
It is possible to set up a CNAME record from Namecheap’s side for domains that are using our BasicDNS, PremiumDNS or FreeDNS.
If your domain is pointed to the Namecheap Web Hosting DNS, you can set the CNAME record in your cPanel with the help of this tutorial.
Follow these steps to create a CNAME record for your domain
(1) Sign into your Namecheap account (The “Sign In” option is available in the header of the page):

(2) Select Domain List from the left side menu and (3) click the Manage button next to your domain:

(4) Navigate to the Advanced DNS tab and (5) click the Add New Record button (not able to edit Host Records?) in the Host Records section:

(6) Select CNAME Record from the drop-down menu for Type, put your desired host (e.g. www) for Host and enter the record itself (e.g. ghs.googlehosted.com) into Value:

Note: Namecheap DNS system automatically adds the domain name to the values submitted during record creation. Please make sure that your domain name is not duplicated in the values (e.g., that you enter your subdomain just like mysubdomain and not like mysubdomain.domain.tld). If your domain is using Namecheap Basic nameservers or PremiumDNS, remove the “domain.tld” part of the provided Host value before adding it to the validation record for the domain. Copy the Host and Target values and paste them into the corresponding fields in your DNS provider account. Set the minimum possible TTL value.
More details on hosts you can use can be found in the “How do I create a subdomain for my domain?” article.
Please note that the target value should be a fully qualified domain name - a valid (sub)domain, not just a random string of symbols. Otherwise, you will get the “Please enter a fully qualified domain name.” warning.
(7) Click on the Save All Changes button each time you need to save the record:

Please check if there are any CNAME, URL Redirect (Unmasked/Masked/Permanent), ALIAS or A records set for the same Host. Such records can conflict with each other and they should be removed. CNAME record blocks any other records created for the same Host.
Here is a CNAME Example with conflicting records:

Once you’ve done this, wait for 30 minutes for the host records to be accepted.
That’s it!
If you have any questions, feel free to contact our Support Team.
Associated articles
Which record type option should I choose for the information I’m about to enter?
Comments
We welcome your comments, questions, corrections and additional information relating to this article. Your comments may take some time to appear. Please be aware that off-topic comments will be deleted.
If you need specific help with your account, feel free to contact our Support Team. Thank you.
Updated
9/23/2024
Viewed
177324 times
Need help? We’re always here for you.
We ❤️ Ukraine. Namecheap is a US based registrar. Many of our colleagues originate from or are located within Ukraine. To support Ukraine in their time of need visit this page.
](https://www.namecheap.com/)
We make registering, hosting, and managing domains for yourself or others easy and affordable, because the internet needs people.
Join Our Newsletter & Marketing Communication
We’ll send you news and offers.
- Domain Name Search
- Domain Transfer
- New TLDs
- Handshake domainsNEW
- Personal Domain
- Namecheap Market
- Whois Lookup
- PremiumDNS
- FreeDNS
- Shared Hosting
- WordPress Hosting
- Reseller Hosting
- VPS Hosting
- Dedicated Servers
- Private Email Hosting
- Migrate to Namecheap
- Domain Privacy
- Website SecurityNEW
- Fix Hacked WebsiteSOS
- Domain VaultNEW
- PremiumDNS
- CDN
- FastVPNUPDATED
- Cyber InsuranceNEW
- 2FA
- Public DNS
- Anti-Spam ProtectionNEW
- Comodo
- Organisation Validation
- Domain Validation
- Extended Validation
- Single Domain
- Wildcard
- Multi-Domain
- Marketplace
- How to Get StartedNEW
- Business FormationFREE
- Relate
- RelateSocialAI
- RelateReviewsAI
- RelateLocalNEWAI
- RelateSEONEWAI
- RelateAdsNEWAI
- Brand MonitoringNEWAI
- Visual
- Site MakerNEW
- Font MakerNEW
- Logo MakerAI
- Business Name Generator
- Stencil Graphics
- Business Card Maker
The entirety of this site is protected by copyright © 2000–2024 Namecheap, Inc.
4600 East Washington Street, Suite 300, Phoenix, AZ 85034, USA
- Terms and Conditions
- Privacy Policy
- UDRP
- Cookie Preferences
WE SUPPORT
Electronic Frontier Foundation
Fight For The Future
We are an ICANN accredited registrar.
Serving customers since 2001.
Payment Options
- American Express
- Bitcoin
- MasterCard
- PayPal
- Visa
- Discover
- UnionPay
- JCB
-
Diners Club

- Android app on google play
- iOS App Store