Using Multiple Data Files for a Single Zone

2.14.1 Problem

You want to break a zone into multiple data files, possibly to organize the large number of resource records logically.

2.14.2 Solution

Use the $INCLUDE control statement in your top-level zone data file, which interpolates the contents of another file. For example, to include the contents of the file into the data file for the zone foo.example, you could use this $INCLUDE control statement:


2.14.3 Discussion

The origin in the included file is, by default, the same as the origin in the file that includes it. If you'd like to change the origin in the included file, specify the new origin as the second argument to the $INCLUDE control statement:


On the line after the $INCLUDE statement, the origin reverts to its previous setting.

2.14.4 See Also

Section 2.9, which explains how to create a subdomain within the same zone.

Getting Started

Zone Data

BIND Name Server Configuration

Electronic Mail

BIND Name Server Operations

Delegation and Registration


Interoperability and Upgrading

Resolvers and Programming

Logging and Troubleshooting


DNS & BIND Cookbook
DNS & BIND Cookbook
ISBN: 0596004109
EAN: 2147483647
Year: 2005
Pages: 220
Authors: Cricket Liu © 2008-2020.
If you may any questions please contact us: