Loading...

Knowledge Base
Save up to  70% off.  Start your website today!

Changing DNS Zones (MX, CNAME, and A Records) in cPanel

With cPanel, users are granted access to make some DNS changes from within the control panel. Please note that this will only work if HostGator's name servers or private name servers registered with HostGator IPs are being used.

This article discusses the following topics:

We have upgraded your Customer Portal so that you can manage your DNS records and website settings in one place.

If you registered your domain with us, you can manage its name servers and DNS records within the Domains section of your Customer Portal. For instructions, please visit the following article.

If your domain is not registered with us, but you want to connect it to your HostGator servers, you need to add it to your control panel as an "addon domain" and then to the Customer Portal as an "external domain." For instructions on how to do so, please visit the article below.


How to Edit or Remove DNS records

  1. Log in to cPanel.
  2. Look for the Domains section, then click Zone Editor.

    cPanel - Zone Editor

  3. On the next page, locate the domain name you need to edit and click its Manage button to view the domain's complete set of DNS records.

    cPanel List of Domains

  4. Locate the DNS record you wish to update.

    cPanel - DNS Zone Files

  5. Make the necessary updates.
    • Select Edit to update the DNS record, then click Save Record.
    • Click on the Delete button to remove a DNS record. A confirmation popup will appear. Click Continue.

How to Add DNS records

Option 1: For this method, it only applies to A, CNAME, and MX records.

  1. Click the appropriate + button in the Zone Editor section.

    cPanel - Add DNS

  2. Enter the values for the DNS record.

    A Record

    cPanel - Add A Record

    CNAME Record

    cPanel- add cname records

    MX Record

    cPanel -  Add MX records

  3. Click on the Add button to save the DNS record.

 

Option 2: For this method, it applies to all DNS records.

  1. Navigate to your cPanel's Zone Editor under the Domains section.

    cPanel - Zone Editor

  2. Locate your domain and then click its Manage button.

    Zone Editor - Manage

  3. Click the +Add Record button located on the right side.

    cPanel- +Add Record

  4. Select the DNS from the Type dropdown, then enter the values to complete. The number of records and the details for each type you must add depend on your hosting or mail provider.
    • A Record

      cPanel - Add A Record

    • MX Record

      cPanel- Add MX Record

    • CNAME Record

      cPanel- Add CNAME Record

    • AAAA Record

      cPanel- Add AAAA Record

  5. Click the Save Record button.

 


More about DNS Zone Functions

The following information will assist you in understanding the purpose of each DNS zone.

Name Servers

The name servers assist in finding the server and correct DNS zone for a domain to get the information on the other DNS zone records. Name servers translate domain names into IP addresses and tell the internet where to look for a domain's IP address.

If a domain was purchased from HostGator and we're your current registrar, you can update your name server within your Customer Portal.

A Record 

The A (address) record connects the domain to an IP address. This is one of the primary records used in DNS servers, and one of its functions is to tell us where a website is hosted.

What does it look like?

A records

Where do I find my domain's IP address?

Depending on your host, you can find the IP address assigned to your domain in the control panel. For HostGator, you can find it within your Customer Portal and cPanel. For more information, please check out the article, What is My Server Address?

CNAME Record

The CNAME (canonical name) record is used to alias a domain or subdomain to another. It points subdomains to another domain name like www and mail and never directly to an IP address.

What does it look like?

CNAME Records

MX Record

The MX (mail exchange) record controls where emails are received. They basically tell your server where to deliver your emails. Depending on your email host, MX records vary. Some may have multiple MX records, like Google Workspace, and some may only have one, like HostGator.

Setting up your emails requires the following:

  • MX record - Your preferred email host will provide this (usually referred to as the "destination").
  • Mail's A record - This is the IP Address pointing to your preferred email host.
  • Email routing - This is your email delivery method.

If your domain uses HostGator's name servers, your emails are automatically set up to use our servers.

What does it look like?

MX records

TXT record

The TXT record is a custom record that contains machine-readable data. They must be formatted according to whichever technology you use. One purpose of TXT records is to validate ownership. A provider may require you to add a TXT record in your control panel to prove ownership of your domain.

What does it look like?

TXT Records

 


If you're looking for articles about updating your DNS for your Google Workspace, the following articles will help.

Here is another set of related articles about DNS records, name servers, and server addresses.

 

Did you find this article helpful?

 
* Your feedback is too short

Loading...