How to Add DNS Records from cPanel

This article explains how to add and manage DNS records (A, CNAME, MX, and TXT) using the Zone Editor in cPanel.

By Sahil SakpalUpdated Oct 21, 2026

        Log in to your cPanel account.

  1. After successful login, the cPanel dashboard will be displayed.

image

Step 2: Open Zone Editor

  1. Locate the search bar on the left-hand side of the cPanel dashboard.

  2. Type Zone Editor in the search field.

  3. Click Zone Editor from the search results.

image

Step 3: Select the Domain

  1. A list of domains hosted under the cPanel account will be displayed.

  2. Locate the domain for which you want to manage DNS records.

  3. Click the Manage button next to the required domain.

image

Step 4: Add or Edit DNS Records

After clicking Manage, you will be redirected to the DNS Zone Management interface where records can be added, modified, or deleted.

image

Step 4(a): Add an A Record

  1. Click + Add Record.

  2. Select A Record.

  3. In the Valid Zone Name field, enter the hostname.

    Examples:

    • domain.com

    • www.domain.com

  4. In the Record field, enter the destination IP address.

  5. Click Save Record.

Example:

Plain Text

Hostname: www.domain.com

Record: 192.168.1.100

image

Step 4(b): Add a CNAME Record

  1. Click + Add Record.

  2. Select CNAME Record.

  3. In the Valid Zone Name field, enter the host value.

  4. In the Record field, enter the destination value provided by the service provider.

  5. Click Save Record.

Example:

Plain Text

Hostname: mail.domain.com

Record: ghs.googlehosted.com

image

Step 4(c): Add an MX Record

  1. Click + Add Record.

  2. Select MX Record.

  3. In the Valid Zone Name field, enter the hostname.

    Example:

Plain Text

domain.com

  1. In the Priority field, enter the priority value provided by the mail service provider.

  2. In the Destination field, enter the mail server address.

  3. Click Save Record.

Example:

Plain Text

Hostname: domain.com

Priority: 0

Destination: mail.domain.com

image

Step 4(d): Add a TXT Record

  1. Click + Add Record.

  2. Select TXT Record.

  3. In the Valid Zone Name field, enter the hostname.

    Example:

Plain Text

domain.com

  1. In the Record field, enter the TXT value provided by the service provider.

  2. Click Save Record.

Example:

Plain Text

v=spf1 include:spf.protection.outlook.com -all

image

Verification

  1. Confirm that the newly added record appears in the DNS record list.

  2. Verify the values are correct.

  3. Allow DNS propagation time if required.

  4. Test the service associated with the record:

    • Website accessibility for A records

    • Alias resolution for CNAME records

    • Email delivery for MX records

    • Domain verification for TXT records


Troubleshooting

Record Not Working

  • Verify that the correct record type was selected.

  • Verify that the hostname and destination values were entered correctly.

  • Check for duplicate or conflicting DNS records.

Email Issues After MX Changes

  • Verify MX priority values.

  • Confirm the mail server address provided by the email service provider.

Domain Verification Fails

  • Ensure the TXT value matches exactly what was provided by the service provider.

  • Wait for DNS propagation to complete.

DNS Changes Not Applied

  • Clear local DNS cache.

  • Check DNS propagation using online DNS lookup tools.

  • Allow up to 24-48 hours for global DNS propagation if required.

  • cPanel
  • dns records
  • zone editor

Was this article helpful?