mail us  |  mail this page

contact us
training  | 
tech stuff  | 

BIND 9 Support

DNS BIND 'named.conf' include statement

The 'include' statement reads the specified file at the point it is encountered.

include "file-name";

'file-name' can be an absolute path e.g. /var/named/file.name or relative e.g. file.name in which case it will be assumed to be in the directory previously nominated by a directory statement. In the absence of a 'directory' option the directory from which bind was loaded is used.

Note: The include statement is BIND specific and should not be confused with the RFC 1035 standard $INCLUDE directive.

The 'include' statement may be used for three purposes:

  1. To simplify or distribute administration of bind file creation, for instance, a zone files may be administered independently by divisions of a company.
  2. To isolate and partition changes and updates, for example, if acl lists change frequently it may be desirable to separate them into files which can be included, minimising the need to edit the primary named.conf file.
  3. Security - it may be desirable to limit access using permissions to files containing, for example, key or trusted-keys records by applying permissions which only allow root or 'named' users to view/edit them.

Example

 options {
 directory "/var/named";
 };
//  using include for zones
...
// zones for chemical division - absolute path
 include "/var/named/chemical/zone.files";
// zones for engineering division
 include "/var/named/engineering/zone.files";
// these load from the path specified by 'directory' option
 include "more-zone.files";
// housekeeping zones explicitly included
zone "64/27.23.168.192.in-addr.arpa" in{
	type master;
	file "192.169.23.rev";
};


Problems, comments, suggestions, corrections (including broken links) or something to add? Please take the time from a busy life to 'mail us' (at top of screen), the webmaster (below) or info-support at zytrax. You will have a warm inner glow for the rest of the day.

Pro DNS and BIND by Ron Aitchison

Contents

tech info
guides home
dns articles
intro
contents
1 objectives
big picture
2 concepts
3 reverse map
4 dns types
quickstart
5 install bind
6 samples
reference
7 named.conf
8 zone records
operations
9 howtos
10 tools
11 trouble
programming
12 bind api's
security
13 dns security
bits & bytes
15 messages
resources
notes & tips
registration FAQ
dns resources
dns rfcs
change log

Creative Commons License
This work is licensed under a Creative Commons License.

If you are happy it's OK - but your browser is giving a less than optimal experience on our site. You could, at no charge, upgrade to a W3C STANDARDS COMPLIANT browser such as Firefox

Search

web zytrax.com

Share

Icons made by Icomoon from www.flaticon.com is licensed by CC 3.0 BY
share page via facebook tweet this page

Page

email us Send to a friend feature print this page Display full width page Decrease font size Increase font size

Resources

Systems

FreeBSD
NetBSD
OpenBSD
DragonFlyBSD
Linux.org
Debian Linux

Software

LibreOffice
OpenOffice
Mozilla
GitHub
GNU-Free SW Foundation
get-dns

Organizations

Open Source Initiative
Creative Commons

Misc.

Ibiblio - Library
Open Book Project
Open Directory
Wikipedia

Site

CSS Technology SPF Record Conformant Domain
Copyright © 1994 - 2024 ZyTrax, Inc.
All rights reserved. Legal and Privacy
site by zytrax
hosted by javapipe.com
web-master at zytrax
Page modified: January 20 2022.