zone file

This text was analyzed, written and translated by artificial intelligence (AI). It may contain mistakes.How we use AI

A file or database that holds all the DNS record One entry in a DNS zone, made of a name, a type, a TTL and data. Full definition of DNS record for a zone, such as a domain or a whole TLD top-level domain The last part of a domain name, after the final dot. Full definition of TLD. A registry The central database and system of a top-level domain, or loosely the organization that runs it. Full definition of registry's TLD zone file lists the name server A server that holds a domain's DNS records and answers lookups. Full definition of name server of every active domain in that TLD. Researchers often study zone files to count domains.

category
DNS and technical foundations

Updated on 5 min read

A zone file is the list the DNS Domain Name System The internet's directory that links domain names to computer addresses. Full definition of DNS (DNS) uses to find the names in one zone. For a top-level domain (TLD), it lists every name that is switched on and the name servers that answer for it. It does not say who owns a name or when the registration Obtaining the right to use a domain name for a set period. Full definition of registration ends.

What a zone file is

A zone is a unit of authoritative DNS information. RFC Request for Comments A numbered document in the series recording the internet's technical standards and practices. Full definition of RFC 1035 (November 1987) calls its text form a “master file”; RFC 9499 notes these “are sometimes called zone files”. Each entry is a resource record, mostly one per line.

A zone can be one domain such as example.com, a whole TLD, or the root zone The top of the DNS, listing every TLD and its name servers. Full definition of root zone, whose complete file IANA Internet Assigned Numbers Authority The functions that coordinate the root zone, IP addresses and protocol numbers. Full definition of IANA links to. It has exactly one start of authority (SOA record Start of Authority The record at the top of a DNS zone holding its serial number and timing settings. Full definition of SOA record) record, at the top, whose serial number tells servers which version they hold. RFC 1035 asks servers to refuse a file with any error, because “a single error can have widespread consequences”.

What a TLD zone file contains, and what it does not

For a new gTLD A generic top-level domain added to the internet through ICANN's New gTLD Program. Full definition of new gTLD, Exhibit A of the Registry Agreement The contract between ICANN and a gTLD registry operator. Full definition of Registry Agreement limits the zone to:

  • the SOA record and the TLD’s own NS record Name Server record A DNS record that lists the name servers responsible for a domain. Full definition of NS record and glue
  • NS records and glue for each registered name
  • DS record Delegation Signer A record in the parent zone that links a domain's DNSSEC key to the chain of trust. Full definition of DS record for registered names
  • the records that sign the zone with DNSSEC Domain Name System Security Extensions Digital signatures that prove DNS answers are genuine and unchanged. Full definition of DNSSEC
  • a TXT record Text record A DNS record holding text, often for domain verification and email security. Full definition of TXT record for versioning

Other record types need approval through RSEP Registry Services Evaluation Policy ICANN's process for approving new or changed services at a gTLD registry. Full definition of RSEP. So a TLD zone file is essentially a list of delegated names and their name servers. It holds no registrant The person or organization that holds a domain name registration. Full definition of registrant details, no registrar A company that registers domain names for customers with the registry. Full definition of registrar and no creation or expiry dates: that is registration data The information kept about a domain and its owner. Full definition of registration data, published separately through RDAP Registration Data Access Protocol The modern protocol for looking up domain registration data, replacing WHOIS. Full definition of RDAP.

Not every registered name appears. Under RFC 5731, a name on clientHold A registrar status that stops a domain from working in the DNS. Full definition of clientHold or serverHold A registry status that stops a domain from working in the DNS. Full definition of serverHold must not be published in the DNS, and a name without name servers is “inactive Status code for a registered domain with no name servers, so it does not resolve. Full definition of inactive”. Verisign The company that operates the .com and .net registries. Full definition of Verisign says its .com and .net files also leave out names in pending delete The final days before a deleted domain is released, when it can no longer be saved. Full definition of pending delete and redemptionPeriod Status code for a deleted domain that its former holder can still recover. Full definition of redemptionPeriod. A zone file count The number of domains in a TLD zone file, lower than the registry's total. Full definition of zone file count delegated names, not registrations, and a name missing from it is not necessarily available.

Who can download gTLD zone files

Registries must give ICANN Internet Corporation for Assigned Names and Numbers The nonprofit that coordinates the global DNS and gTLD policy. Full definition of ICANN bulk access at least daily. Under Specification 4 of the base Registry Agreement (version of 21 January 2024), any internet user may sign a standard access agreement. As of October 2026, access lasts at least three months, can be renewed and allows one download per 24 hours.

gTLD generic top-level domain A top-level domain not tied to a country, run under ICANN contracts. Full definition of gTLD delegated before 2013 that have not renewed their agreement use Appendix 3 of their own Registry Agreement instead. The obligation does not cover ccTLD country code top-level domain A top-level domain for a country or territory, usually two letters long. Full definition of ccTLD, which set their own rules. As of October 2026, for example, The Swedish Internet Foundation publishes the .se and .nu zones openly by zone transfer Copying a DNS zone from one name server to another, in full or in part. Full definition of zone transfer zone transfer, under a Creative Commons Attribution 4.0 license.

Requesting access through CZDS

CZDS Centralized Zone Data Service ICANN's portal for requesting access to gTLD zone files. Full definition of CZDS is ICANN’s central portal for these requests. As of October 2026, the steps are:

  1. Create an ICANN Account and a CZDS profile: organization name (or apply as an individual), contact name, address, telephone, fax (if any), email and IP Internet Protocol The internet's basic rules for sending data, using numeric addresses for every connected device. Full definition of IP. The registry must be able to verify these details. Accept the CZDS Terms of Use.
  2. Select one or more TLDs, optionally give a reason, and accept each registry’s Terms and Conditions, which are the zone file agreement with that registry.
  3. Each registry approves or denies the request, giving a reason for a denial. Some TLDs approve automatically. No rule sets a deadline for a decision.
  4. Approved users download a .zone.gz file named after the zone, which the contract pairs with .md5 and .sig files to check it, in the portal or through an application programming interface (API) over HTTPS Hypertext Transfer Protocol Secure The encrypted version of the protocol web browsers use to load pages. Full definition of HTTPS. Some TLDs require the SSH File Transfer Protocol (SFTP) from a registered IP address.

ICANN collects the files daily from 00:00 Coordinated Universal Time (UTC), and they are available after 06:00 UTC. Verisign says access to the .com and .net zone files is requested through CZDS. For a TLD not listed in CZDS, ICANN directs requesters to the registry.

As of October 2026, access lasts 90 to 4,000 days, as set by each TLD. Since 15 November 2022 it renews automatically unless the registry turns that off; an extension can be requested up to 30 days before expiry. This followed SAC097 (12 June 2017), in which SSAC Security and Stability Advisory Committee ICANN's expert committee on security and stability of naming and addressing. Full definition of SSAC reported access lapsing as often as every three months, leaving “blind spots” in security and research.

The contract allows lawful uses only. It forbids marketing to anyone who is not already the user’s customer, high-volume automated queries to registry or registrar systems, and disrupting registrants. Whether a specific use fits is a question for a lawyer.

Zone transfers and TSIG

Within a DNS provider A company that runs the name servers for a domain, which may differ from the registrar. Full definition of DNS provider, a primary server feeds secondary servers by zone transfer: Authoritative Transfer (AXFR) copies the whole zone, Incremental Transfer (IXFR) only the changes since a given SOA serial. Operators may restrict transfers, partly to keep the bulk zone private.

RFC 5936 recommends TSIG Transaction Signature A shared-key method that authenticates DNS messages between servers. Full definition of TSIG to control who may transfer a zone. Both servers agree a secret key and algorithm in advance; each message then carries a message authentication code (MAC) proving who sent it and that it was not altered. As of October 2026, hmac-sha256 is mandatory to implement, and a time window, 300 seconds by recommendation, limits replayed messages. Shared keys become unwieldy for servers with many partners.

TSIG is not DNSSEC and does not encrypt. Transfers are cleartext unless XFR over TLS Transport Layer Security The standard that encrypts connections between a browser or app and a server. Full definition of TLS (XoT, RFC 9103) is used. CZDS downloads are a separate path, through the portal, its API or SFTP.

Uses, and an example

ICANN names law enforcement agents, intellectual property attorneys and researchers as typical requesters. Comparing daily files shows names added and removed, which is how researchers and brand protection The work of keeping a brand safe from misuse in domain names. Full definition of brand protection teams follow new delegations. Investors may use the same data, but only within the contract’s limits, which forbid marketing to people who are not existing customers.

As an illustration, here is one line in the contract’s format, with its fields separated by single tabs: example.example. 86400 in ns ns1.example.net. It says only that example.example is delegated to the name server ns1.example.net. The TTL Time to Live How long resolvers may keep a saved copy of a DNS record. Full definition of TTL is invented for the example.

Sources