+254725682556 +254725052660 info@ziprof.co.ke
Client Area

DNS - Nameserver

What Is a DNS Zone File and How Do You Read One?

A DNS zone file is simply the collection of DNS records for your domain, stored together in one place on your nameserver. It tells the internet which server hosts your website, which server handles your email, and how various subdomains and services should resolve. Every domain has one, whether you've ever looked at it or not.

You don't need to edit a zone file directly very often, but understanding what it contains makes it much easier to troubleshoot email delivery problems, point a subdomain somewhere new, or verify that changes you made actually saved correctly.

What's Inside a Zone File

Each line in a zone file is a single DNS record. Every record generally has the same basic parts:

  • Name: the hostname the record applies to, such as your root domain, www, or a subdomain like mail.
  • Type: the kind of record, for example A, CNAME, MX, or TXT.
  • TTL: Time To Live, how long (in seconds) other servers should cache the record before checking for updates again.
  • Value: what the record points to, such as an IP address for an A record or a mail server hostname for an MX record.
  • Priority: used only by MX records, to indicate which mail server should be tried first when there's more than one.

A typical zone file mixes several record types together: an A record pointing your domain to your hosting server's IP address, one or more MX records for email, a TXT record for SPF, and often a few CNAME records for things like www or webmail.

How to View or Edit Your Zone File

You rarely need to open the raw zone file text. Both control panels give you a friendly editor that adds, changes, or removes individual records without you having to touch the underlying file format.

In cPanel

  1. Log in to cPanel.
  2. Under the Domains section, click Zone Editor.
  3. Find your domain in the list and click Manage.
  4. You'll see every record in your zone, with options to Edit or Delete each one, and an Add Record button for new ones.

In DirectAdmin

  1. Log in to DirectAdmin.
  2. Go to DNS Management (sometimes listed as DNS Control depending on your account's theme).
  3. Select the domain whose zone you want to view.
  4. All existing records are listed on this page, with fields to add a new record at the top and options to delete existing ones alongside each entry.
Changing or deleting the wrong record, especially an MX or A record, can take your website or email offline. Note down the original value before you edit anything, in case you need to put it back.

Why You Might Need to Check It

  • Verifying that a DNS record you added actually saved with the correct value.
  • Troubleshooting why email isn't arriving, by confirming your MX and SPF records are correct.
  • Checking whether your domain's TTL is still set high after you meant to lower it before a migration.
  • Confirming a subdomain or third-party service (like a mail provider or CDN) added its verification record correctly.

For the exact steps to add or change a specific record type, see How to Add or Edit a DNS Record (A, CNAME, MX, TXT).