ServerNeed — This Year's Best Offers For You

ServerNeed — More Than Hosting
Tutorials

How to Add and Edit DNS Records in cPanel Zone Editor

Add, edit and delete A, CNAME, MX and TXT records in cPanel's Zone Editor, with worked examples and the mistakes that most often take websites and email offline.

5 min read 5 views
Settings button with a mouse pointer
Table of Contents
  1. Open the Zone Editor
  2. Before you change anything
  3. Add an A record (point a name to an IP)
  4. Add a CNAME record (alias)
  5. Add or change MX records (email)
  6. Add a TXT record (SPF, DMARC, verification)
  7. Edit or delete a record
  8. Worked example: verifying a domain for an email service
  9. Lowering TTL before a planned change
  10. Check the result
  11. Common mistakes
  12. Frequently Asked Questions
  13. Related reading
  14. Sources

cPanel's Zone Editor lets you manage the DNS records for domains that use your hosting server's nameservers. You can add records for subdomains and services, change where the website points, set up email routing and add verification and email-authentication TXT records.

Important: Zone Editor only affects live DNS if your domain's nameservers point to this hosting server. If your DNS is managed elsewhere (your registrar or Cloudflare), make changes there instead. See nameservers vs DNS records.

Open the Zone Editor

  1. Log in to cPanel; see how to log in to cPanel.
  2. In the Domains section, open Zone Editor.
  3. Find your domain and click Manage to see all its records.

The list shows each record's name, TTL, type and value. Use the filter buttons to show only A, CNAME, MX or TXT records.

Before you change anything

  • Note or export the current records (copy them into a document). If something breaks, you can put the old values back.
  • Change one thing at a time and test.

Add an A record (point a name to an IP)

Use this to point a subdomain to a server, for example app.example.com to another server.

  1. Click Add Record and choose A.
  2. Name: app.example.com. (cPanel usually completes the domain part).
  3. TTL: leave the default, or 300 before planned changes.
  4. Record: the IPv4 address, such as 203.0.113.20.
  5. Save Record.

Add a CNAME record (alias)

Use this to point a name to another hostname, for example a service that gives you a target name.

  1. Add Record → CNAME.
  2. Name: shop.example.com.
  3. Record: the target, such as stores.serviceprovider.com.
  4. Save Record.

A name that has a CNAME cannot have other records. Never add a CNAME for the root domain.

Add or change MX records (email)

If your email is hosted elsewhere, the provider gives you MX records:

  1. In Zone Editor, filter to MX.
  2. Edit or delete the existing MX records that point to the old mail server.
  3. Add Record → MX: name example.com., priority (for example 10), destination (the provider's mail hostname).
  4. Add every MX record the provider lists, with its priority.

Then, in cPanel → Email Routing, set the domain to Remote Mail Exchanger so mail from your own server (such as website contact forms) is delivered to the external provider. See MX records explained.

Add a TXT record (SPF, DMARC, verification)

  1. Add Record → TXT.
  2. Name: the domain for SPF and most verifications (example.com.), or _dmarc.example.com. for DMARC.
  3. Record: the value exactly as given, for example v=spf1 include:_spf.provider.com ~all.
  4. Save Record.

There must be only one SPF record per name: edit the existing one rather than adding a second. cPanel's Email Deliverability tool can install recommended SPF and DKIM records automatically when DNS is hosted on the server. See SPF, DKIM and DMARC explained.

Edit or delete a record

Click Edit next to the record, change the value, and Save. Use Delete for records you no longer need, carefully: deleting the root A record or MX records takes the website or email offline.

Worked example: verifying a domain for an email service

An email or marketing service asks you to prove you own example.com by adding a TXT record with the value verify-abc123xyz, then a CNAME for DKIM: s1._domainkey pointing to s1.domainkey.u123.serviceprovider.net.

  1. In Zone Editor, Add Record → TXT: Name example.com., Record verify-abc123xyz. Save.
  2. Add Record → CNAME: Name s1._domainkey.example.com., Record s1.domainkey.u123.serviceprovider.net. Save.
  3. Check the SPF record: if the service sends email for you, edit the existing SPF TXT record to add its include: (do not create a second SPF record).
  4. Wait a few minutes, then click Verify in the service's dashboard. If it fails, check with dig TXT example.com and dig CNAME s1._domainkey.example.com that the records resolve.

Verification TXT records can usually be removed after verification succeeds, unless the service says otherwise. Keep a note of why each TXT record exists, so nobody deletes an important one later.

Lowering TTL before a planned change

Before moving a website or email, lower the TTL of the records you will change (for example from 14400 to 300) a day in advance. In Zone Editor, edit each record and change only the TTL. After the move, raise it again. See how to point a domain to hosting.

Check the result

  • Use dig example.com A (or MX, TXT) or an online DNS checker.
  • Query the server's nameserver directly to confirm the change was saved before waiting for caches.
  • Remember TTL: resolvers may show the old value until it expires. See DNS propagation explained.

Common mistakes

  • Editing Zone Editor while the domain's nameservers point somewhere else.
  • Two SPF records on the same name.
  • Deleting MX records while moving the website.
  • A CNAME on a name that also has other records.
  • Typos in IP addresses or hostnames.

Frequently Asked Questions

What does the dot at the end of a name mean?

It marks a fully qualified domain name. cPanel adds it automatically in most fields.

Why can't I see Zone Editor in my cPanel?

Your host may have disabled it for your plan, or the domain's DNS is not hosted on this server. Ask support.

See DNS record types explained and how to point a domain to hosting. cPanel is included with the ServerNeed shared hosting plans.

Sources

Last updated 7 October 2026

View All Articles