WEBINVEST.IT
Glossary

Zone file

A zone file is a structured representation of DNS records associated with a zone, such as a domain or a delegated portion of the namespace. It may contain A, AAAA, CNAME, MX, TXT, NS, SOA, and other record types, each with name, class, type, TTL, and value according to the adopted syntax. The term originates from the traditional textual format used by DNS servers, although many providers now store zones in databases or web panels rather than visible files. The core concept remains a coherent set of authoritative data for a zone.

Zone Structure

The zone includes an SOA record with administrative parameters such as serial and timeouts, along with NS records indicating authoritative nameservers. Other records define services and delegations. Textual format often uses relative values to the zone name, TTLs, and notations for addresses or strings. TXT strings may require quoting and line breaks, while MX and SRV records include priority or additional parameters. A valid zone must follow DNS syntax and rules; formatting errors can prevent loading or cause unexpected responses.

A zone can include subdomains and delegations but does not necessarily encompass the entire domain. A subdomain may be managed in a separate zone if delegated to its own nameservers. Parent data such as glue records and NS delegations reside at the higher level and are not always included in the child zone file. This distinction is critical during migration: copying only the internal file without verifying delegation can leave the domain unreachable.

Modification and Publishing

In managed providers, zones are modified through a panel or API; the file may be auto-generated or inaccessible. Every change must be applied to the correct authoritative provider. Before replacing an entire zone, all records should be exported, including checks, emails, temporary services, and less visible entries. Recreating only A and MX records can break SPF, DKIM, DMARC, certificates, validations, and applications. The SOA serial helps synchronize secondary servers and detect updates, per the provider’s mechanism.

Different records may have independent TTLs, and resolvers cache copies. After a change, authoritative responses should be verified before interpreting recursive resolver data. A syntactically correct zone does not guarantee that target addresses or hosts are reachable. Therefore, both records and downstream services must be validated. Zone backups and comparisons between versions allow rollbacks and audits.

Security and Control

The zone file may reveal an organization’s architecture, internal names, servers, services, and verification methods. It should only be shared with authorized personnel. If accidentally published, it can aid reconnaissance; some data remains queryable via standard DNS queries. Zone transfers are separate mechanisms and should be limited to authorized secondaries, with authentication and firewall rules. API credentials and DNS panel access require minimal privileges.

DNSSEC signs RRsets and allows validating resolvers to verify authenticity and integrity, but does not encrypt the file or hide public records. Keys and signatures must remain consistent. A zone may have correct records but fail validation if DNSKEY, DS, or signatures are misaligned.

In summary, a zone file is the structured map of authoritative DNS records. Its integrity and completeness are vital for migrations and service continuity. Controlled exports, record comparisons, and post-release testing reduce errors and disruptions.

← Full glossary