Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

19.2. /etc/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>;
};

19.2.1. 一般的なステートメントのタイプ

/etc/named.conf では、通常、以下のタイプのステートメントが使用されます。

19.2.1.1.

acl <acl-name> {
	<match-element>;
	[<match-element>; ...]
};
acl black-hats {
	10.0.2.0/24;
	192.168.0.0/24;
};
acl red-hats {
	10.0.1.0/24;
};
options {
	blackhole { black-hats; };
	allow-query { red-hats; };
	allow-recursion { red-hats; };
};

19.2.1.2.

include "<file-name>"

19.2.1.3.

options {
	<option>;
	[<option>; ...]
};
allow-query
allow-recursion
blackhole
directory
forwarders
forward
listen-on
options {
	listen-on { 10.0.1.1; };
};
notify
以下のオプションを取ります。
pid-file
root-delegation-only
options {
	root-delegation-only exclude { "ad"; "ar"; "biz"; "cr"; "cu"; "de"; "dm"; "id";
		"lu"; "lv"; "md"; "ms"; "museum"; "name"; "no"; "pa";
		"pf"; "se"; "sr"; "to"; "tw"; "us"; "uy"; };
};
statistics-file
統計ファイルの代替の場所を指定します。

19.2.1.4.

zone <zone-name> <zone-class> {
	<zone-options>;
	[<zone-options>; ...]
};
注記
allow-query
allow-transfer
allow-update
file
masters
notify
type
zone-statistics

19.2.1.5.

zone "example.com" IN {
	type master;
	file "example.com.zone";
	allow-update { none; };
};
zone "example.com" {
	type slave;
	file "example.com.zone";
	masters { 192.168.0.1; };
};