DNS Zone Declarations and Options
While options and other named.conf parameters described below relate to the configuration and operational parameters of the DNS service, the zone declaration statements identify the zones with which the DNS service on this server is configured. Each zone statement identifies the name and type of the zone. The name corresponds to the zone name within the DNS domain tree, while type may be one of the following:
- primary - this zone is the master copy of the zone information
- secodary - this zone is authoritative for the given zone name, but it retrieves its copy of the zone from another DNS server, usually that configured with the copy of the zone as type primary, though secondaries can also retrieve copies from other secondaries.
- mirror - this zone type is intended to for use as a local copy of the root zone and it requires DNSSEC validation upon transfer from the root or when named loads.
- stub - this zone contains only NS records retrieved from the master copy of this zone; clients querying a server which has a stub zone corresponding to the query will attempt to resolve all queries leveraging these NS records to identify the server to query for authoritative zone information.
- static-stub - the static-stub zone type is like a stub zone in that it contains only NS (and glue) records for the zone, but these records are configured within the server options (statically), not via zone transfer from a master server.
- forward - this zone should contain query forwarding information to steer queries for this zone to particular recursive DNS servers.
- hint - this zone contains the last resort set of NS and glue records for root DNS servers. This zone provides information a recursive server needs to jump to the top of the domain tree for traversal down to the queried zone and resource record(s).
- delegation-only - Removed in BIND 9.20. this zone provides referrals to DNS servers further down the domain tree and not direct resolution. This zone type was introduced primarily for TLD zones (e.g., .com, .net, etc.).
- redirect - a redirect zone enables provision of a query response to designated hosts when an NXDOMAIN otherwise would have been provided. An analogous technique has been used for years for directing mistyped domain names to a search page.
The general format of the zone statement within the named.conf file is:
| zone zone-name [class] { | |
| type zone-type; | |
| zero or more zone option statements; | |
| }; | |
where zone-name is the domain name of the zone, the class is the class of the zone, IN by default, zone-type is one of the possible zone types listed above, and option statements are those applicable to the particular zone type per the BIND Options Reference table .

