BIND Configuration File Guide - include Statement


Syntax

include path_name;


Definition and Usage

The include statement inserts the specified file at the point that the include statement is encountered. You cannot use it within another statement, though, so the following line (and others like it) are not allowed:

acl internal_hosts { include "internal_hosts.acl"; };

Use include to break the configuration up into easily-managed chunks. For example, you could use the following statements at the top of a configuration file in order to include any ACL or key information:

include "/etc/security/keys.bind";
include "/etc/acls.bind";

 Be careful not to type "#include", like you would in a C program, because "#" is used to start a comment.