Glossary

What Is DNS Zone File?

A DNS zone file is a text file that contains all the DNS records for a domain. It defines the mappings between domain names and IP addresses, mail servers, nameservers, and other DNS data.

Why It Matters

A zone file is the source of truth for all DNS records of a domain. It lives on the domain’s nameservers and contains every record — A, AAAA, CNAME, MX, TXT, NS, SOA, SRV, CAA, and more.

In practice, you rarely edit zone files directly. Registrar dashboards provide a web interface that modifies the zone file for you. But understanding zone files helps you debug DNS issues and makes sense of exported DNS data.

How It Works

A zone file is a plain text file with a specific format:

$TTL 3600
@    SOA   ns1.example.com  admin.example.com  (2026042001 3600 900 1209600 300)
@    NS    ns1.example.com
@    NS    ns2.example.com
@    A     93.184.216.34
www  CNAME example.com
@    MX    10 mail.example.com
@    TXT   "v=spf1 include:_spf.google.com ~all"

The @ symbol represents the apex domain. Each line is a resource record with the name, record type, and value.

Zone File and Domain Forwarding

When you set up Domain Forward, you modify two lines in your zone file (via your registrar’s dashboard):

@    A     [Domain Forward IP]       ← changed
www  CNAME forward.domain-forward.com ← changed

Everything else in the zone file stays the same — MX records for email, TXT records for verifications, NS records for nameservers.

Related Terms

Related Features

Frequently
asked questions

No. Modern registrars provide a web interface for managing DNS records. The zone file is updated automatically when you use the interface. You only need to update A and CNAME records.

Still Confused? Try It Free.

Set up your first domain forward in under 5 minutes. Free plan includes 5 domains.