Skip to content

How to read a DNS zone, line by line

Up to date as of 28 November 2026

A DNS zone is a list. Each row is one record, and each record is one fact. Once you know the columns, the list stops looking like code.

The contents of a zone "can be expressed in the form of a list of RRs".1 An RR is a resource record, the technical name for a row. The terminology document says "Authoritative information is organized into units called" zones.2

The columns

Your provider's screen may show a table, or lines of plain text. Either way, the same four parts turn up.

The parts of one rowName: which part of the domainTTL: how long answers may be keptType: what kind of factValue: the fact itself
Read each row left to right, one question at a time.

A master file entry "begins with optional TTL and class fields, followed by a type and" the value.1 That's why the TTL is optional in the file format and why some screens hide it.

  • Name. Which name the row is about. An @ sign or a blank usually means the bare domain. A word like www means that subdomain.
  • TTL. How long other servers may keep the answer. Waiting times are covered under TTL.
  • Type. A, AAAA, CNAME, MX, TXT, NS or SOA.
  • Value. The fact. An address, another name, or some text.

Some providers add a column for priority, which only matters on MX rows, and a switch for proxying or similar extras. Those are the provider's own features, so check their help page.

The two rows at the top

Most zones start with an SOA row. The SOA record "marks the start of a zone of authority".1

The specification also says "Exactly one SOA RR should be present at the top of the zone."1

Leave it alone unless your DNS host's guide tells you to change something.

Next come NS rows. They name the servers that answer for the zone. Together with the SOA they sit at the top of the zone, called the apex. Detail is on the NS records page.

A real example, row by row

The original specification includes a sample zone for a domain called ISI.EDU. Here are some of its rows.1

Name Type Value What it says
(the domain itself) NS A.ISI.EDU. A nameserver for the zone1
(the domain itself) MX 10 VENERA Mail goes to VENERA, preference 101
(the domain itself) MX 20 VAXA Backup mail server, preference 201
VENERA A 10.1.0.52 An address for the name VENERA1
VENERA A 128.9.0.32 A second address for the same name1

Notice a few things. A blank name means "same name as the row above". That's rule enough. Two rows share a name when one name has more than one value. And the mail rows point at names, which then have their own address rows. That's the same chain described on the MX records page.

Real zones today will also have rows the sample doesn't, such as AAAA and CNAME. A and AAAA and CNAME each have a page.

A reading order that works

Read the zone in this order and each part makes sense.

A sensible reading orderFind the SOA and NS rowsCheck the A and AAAA rowsCheck CNAME rowsCheck MX and TXT rows
Start with who answers, then work down by type.
  1. Find the NS rows. They tell you who answers for the zone.
  2. Look at the A and AAAA rows. Do the values match what your web host gave you?
  3. Look for CNAME rows. A name with a CNAME shouldn't have any other row on it. Older guidance is firm about that.3
  4. Read the MX rows, then the TXT rows. TXT rows often come from services asking you to prove ownership, which the TXT page explains.

What a messy zone tells you

Spot a row you don't recognise? Don't delete it straight away. It may belong to a service you set up years ago, such as email or a site tool. Search for its name or value, and check the help pages of the services you use. If you're unsure, ask the person who set up your domain or your DNS host's support.

Write down the zone before you make changes. A screenshot will do. If something breaks, you can put the old rows back, and that's a relief when it happens at an awkward hour.

Notes and sources

  1. RFC 1035: Domain names, implementation and specification, IETF (RFC Editor)
  2. RFC 8499: DNS Terminology, IETF (RFC Editor)
  3. RFC 1912: Common DNS operational and configuration errors, IETF (RFC Editor)