Configuring a CNAME (Canonical Name) record involves setting up a DNS entry that points a domain or subdomain to another domain name instead of an IP address. This is useful for redirecting traffic to a different server or service without changing the domain name itself.
Steps to Configure CNAME:
-
Access DNS Management:
- Log in to your domain registrar or DNS hosting provider's control panel.
-
Locate DNS Records:
- Find the section where you can manage DNS records. This is often under a "DNS Manager" or "Domain Settings" tab.
-
Add a New Record:
- Click on the option to add a new record.
- Select "CNAME" as the record type.
-
Enter Details:
- Host: Enter the alias or subdomain you want to create (e.g., "blog" for "blog.example.com").
- Points to: Enter the target domain name you want the alias to point to (e.g., "example.com" or another domain).
- TTL (Time to Live): Set the TTL value, which determines how long the DNS change takes to propagate across the internet. Common values are 1 hour (3600 seconds) or 5 minutes (300 seconds).
-
Save Changes:
- Save the new CNAME record. It may take some time for the changes to propagate, typically up to 48 hours, but usually much faster.
Example:
If you want to point "blog.example.com" to "example.com", you would:
- Add a CNAME record with "blog" as the host.
- Set the "Points to" field to "example.com".
Cloud Service Recommendation:
For managing DNS and configuring CNAME records efficiently, especially if you're using cloud services, consider using Tencent Cloud's DNSPod. It offers a user-friendly interface and robust features for managing DNS records, including CNAME records, ensuring high availability and fast propagation of your DNS changes.
By following these steps and utilizing reliable DNS management tools like Tencent Cloud's DNSPod, you can effectively configure CNAME records to manage your domain's traffic routing.