Edit DNS zone in WHM

This article explains how to edit DNS zones of a domain from the WHM reseller panel.

Important: You can only edit one domain at a time. A misconfigured DNS record can make the site or email inaccessible. If you are not sure, consult before saving or ask for help through the client portal.

WHM or cPanel?

  • WHM → Edit DNS Zone: for resellers; you edit the zone of any account under your plan.
  • cPanel → Zone Editor: the end client usually edits only their domain from their own panel.

Accessing the zone editor

  1. Log in to WHM: https://yourdomain.com:2087 or https://yourdomain.com/whm.
  2. Go to DNS Functions → Edit DNS Zone.
  3. Click on the domain you want to modify.
  4. Edit the records in the table and click Save.

To add a new record, use the empty row at the bottom of the table, fill in the fields and save.

Table columns

Column Description
Domain Host name (e.g. @, www, mail).
TTL Time in seconds that resolvers and browsers cache the record.
Class Must be IN (Internet). Any other value generates an error.
Record type Record type (A, MX, CNAME, etc.).
Value / Address Record destination (IP, hostname, text depending on the type).

At the top WHM shows zone metadata (Editing zone, cPanel version, default $TTL, last modified date). The global $TTL applies when a record does not define its own TTL.

Most used record types

Type Function
SOA Start of Authority of the zone (primary DNS server, admin contact, serial, refresh, expire). WHM manages this; avoid changing it without experience.
NS Name servers of the domain.
A Points a name to an IPv4 address (e.g. website).
AAAA Same as A, but for IPv6.
MX Mail server of the domain. Lower number = higher priority (0 is the highest).
CNAME Alias of one name to another (e.g. www → root domain).
TXT Free text (SPF, DKIM, service verifications).

Different IP for web and mail

In the standard cPanel template, mail is usually a CNAME to the main domain A record. If you change the IP of the main A record, mail inherits that change.

For mail to use a different IP:

  1. Change the MX record to mail.yourdomain.com. (with a trailing dot).
  2. Replace the mail CNAME with an A record with the mail server IP.
  3. Click Save.

Trailing dot in FQDN: In DNS zones, fully qualified names are usually written with a dot at the end (e.g. mail.example.com.). Without the dot, the server may interpret the name as a relative subdomain.

Changing the template for new domains

If you want the accounts you create from now on to have MX and mail with a separate IP by default:

  1. In WHM: DNS Functions → Edit Zone Templates.
  2. Open the standard template.
  3. Change %domain%. IN MX 0 %domain%. to %domain%. IN MX 0 mail.%domain%.
  4. Change mail IN CNAME %domain%. to mail IN A %IP%.
  5. Save the changes.

This affects only new zones; existing domains must be edited manually in Edit DNS Zone.

Best practices

  • Note down which record you changed and the previous value in case you need to revert.
  • After saving, wait for DNS propagation (minutes to 48 h depending on TTL and providers).
  • Do not duplicate conflicting records (two different A records for the same host, or CNAME along with another record on the same name).
  • If the domain uses external DNS (Cloudflare, Nic.ar delegated only, etc.), the changes in WHM do not apply until the nameservers point to your server.

If the site or email stop working after a change, revert the last saved value or contact support from the client portal.

  • 14 Users Found This Useful
Was this answer helpful?

Related Articles

DNS Records Management

This article explains how to manage DNS records (A, MX, CNAME, TXT, and others) for your clients'...

Configuring nameservers and DNS delegation

This article explains what nameservers are, how to delegate a domain to use your hosting's DNS,...

DNS Record Management (A, CNAME, MX, TXT, etc.)

This article explains the most commonly used DNS records and how to manage them from cPanel or...