HostGator Web Hosting Help

What Is A CNAME - How To Create & Edit CNAME

Summary

A CNAME (Canonical Name) points one domain or subdomain to another domain name, allowing you to update one A Record each time you make a change, regardless of how many Host Records need to resolve to that IP address.

Understanding a CNAME


These records point www.example.com to example.com, imap.example.com to mail.example.com, and docs.example.com to ghs.google.com.
The first record allows the domain to resolve to the same server with or without the www subdomain.
The second record allows you to use an alternative subdomain for email hosting an delivery.
The third record allows you to use the docs.example.com subdomain with Google Apps, where you can use Google's document management system. This type of record requires additional configuration with Google.

Creating a CNAME

  1. Log into your HostGator Hosting Account
    • Legacy: Select the DNS Zone Editor icon in the Domains section.
    • Rock: Click the Domains tab from the side navigation menu, then select the Zone Editor option.
  2. Select the domain you're modifying from the drop-down box.
  3. Scroll down to the heading named Add DNS Record
  4. In the Host Record field, enter the desired record name
  5. Leave the TTL field at it's default setting
  6. Select CNAME, from the drop-down labeled Type
  7. In the Points To field, enter the address that the record should resolve to.
  8. Other fields may appear depending on the type of record you are creating.
  9. Click on the Add Record button to create the record

Editing a CNAME

  1. Log into your HostGator Hosting Account
    • Legacy: Select the DNS Zone Editor icon in the Domains section.
    • Rock: Click the Domains tab from the side navigation menu, then select the Zone Editor option.
  2. Select the domain you're modifying from the drop-down box.
  3. Scroll down to the heading named CNAME
  4. Click Edit
  5. Make the necessary changes the CNAME
  6. Click Save
  7. Click on the Add Record button to create the record



Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

What are the commonly used DNS entries?
Knowledgebase Article 823,082 views tags: a aaaa cname dns record srv txt zone

How to Modify Your DNS Records
Knowledgebase Article 1,483,305 views tags: a aaaa access cname dns editor management mx nameserver ns ptr server spf txt update zone

Definition of an A Record
Knowledgebase Article 834,947 views tags: a dns file host ip record zone

Related Help Content

A definition of AAAA Records
Knowledgebase Article 330,779 views tags: aaaa dns record zone

Any time DNS is updated, it can take up to 48 hours for those changes to take effect. This period of time is called propagation, and it applies to any and all DNS updates. This article will explain what propagation is and why it's important.
Knowledgebase Article 146,379 views tags: a cache cname dns domains mx propagation txt

Do you support wildcard subdomains or wildcard DNS entries?
Knowledgebase Article 300,928 views tags: dns domain subdomain wildcard zone

Definition of an MX Entry
Knowledgebase Article 367,490 views tags: dns entry mx zone

I would like to change my MX Record so I can use a mail server with another provider.
Knowledgebase Article 639,744 views tags: dns email exchanger local mail mx remote routing

Definition of a TXT Record
Knowledgebase Article 452,506 views tags: dns record txt zone

Definition of an SRV Record
Knowledgebase Article 304,461 views tags: dns record srv zone

How can I change the reported Time Zone using PHP?
Knowledgebase Article 239,784 views tags: time timezone timezones zone