Etc/Named.conf; Common Statement Types - Red Hat ENTERPRISE LINUX 4.5.0 Reference Manual

Table of Contents

Advertisement

— The configuration file for the

/etc/named.conf

directory — The
/var/named/
files.
The next few sections review the BIND configuration files in more detail.
2.
/etc/named.conf
The
file is a collection of statements using nested options surrounded by opening
named.conf
and closing ellipse characters,
avoid syntactical errors as many seemingly minor errors prevent the
starting.
A typical
named.conf
<statement-1> ["<statement-1-name>"] [<statement-1-class>] { <option-1>;
<option-2>; <option-N>; }; <statement-2> ["<statement-2-name>"]
[<statement-2-class>] { <option-1>; <option-2>; <option-N>; }; <statement-N>
["<statement-N-name>"] [<statement-N-class>] { <option-1>; <option-2>;
<option-N>; };

2.1. Common Statement Types

The following types of statements are commonly used in
2.1.1.
Statement
acl
The
statement (or access control statement) defines groups of hosts which can then be
acl
permitted or denied access to the nameserver.
An
statement takes the following form:
acl
acl <acl-name> { <match-element>; [<match-element>; ...] };
In this statement, replace
with a semi-colon separated list of IP addresses. Most of the time, an
<match-element>
individual IP address or IP network notation (such as
addresses within the
acl
The following access control lists are already defined as keywords to simplify configuration:
— Matches every IP address.
any
— Matches any IP address in use by the local system.
localhost
— Matches any IP address on any network to which the local system is
localnets
working directory which stores zone, statistic, and cache
named
. Administrators must be careful when editing
{ }
file is organized similar to the following example:
with the name of the access control list and replace
<acl-name>
statement.
daemon.
named
named
/etc/named.conf
) is used to identify the IP
10.0.1.0/24
/etc/named.conf
to
named.conf
service from
:
215

Advertisement

Table of Contents
loading

Table of Contents