「BIND Solaris」の編集履歴(バックアップ)一覧に戻る

BIND Solaris - (2007/07/03 (火) 01:13:32) の編集履歴(バックアップ)


BINDの設定


named.conf

options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
forwarders{192.168.1.1};
};
zone "."{
type hint;
file "named.ca";
};
zone "localhost" {
type master;
file "data/db.zone";
allow-query { any; };
};
zone "0.0.127.in-addr.arpa" {
type master;
file "data/db.rev";
};
zone "hebo.test" {
type master;
file "data/hebo.zone";
allow-query { any; };
};
zone "1.168.192.in-addr.arpa" {
type master;
file "data/hebo.rev";
};
zone "bohe.test" {
type master;
file "data/bohe.zone";
allow-query { any; };
};

db.zone

$TTL 86400
@ IN SOA localhost. root.localhost. (
2006051611 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
localhost. IN A 127.0.0.1

db.rev

$TTL 86400
@ IN SOA localhost. root.localhost. (
2006051612 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.

hebo.zone

$TTL 86400
@ IN SOA netr01.hebo.test. root.netr01.hebo.test. (
2006121401 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS netr01.hebo.test.
IN MX 10 netr01.hebo.test.
netr01 IN A 192.168.1.8

hebo.rev

$TTL 86400
@ IN SOA netr01.hebo.test. root.netr01.hebo.test. (
2006121403 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS netr01.hebo.test.
8 IN PTR netr01.hebo.test.
10 IN PTR vine01.bohe.test.

bohe.zone

$TTL 86400
@ IN SOA vine01.bohe.test. root.vine01.bohe.test. (
2006121403 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS netr01.hebo.test.
IN MX 10 vine01.bohe.test.
vine01 IN A 192.168.1.10

MXの冗長化

該当ドメインのzoneファイルに記述します。
Aレコードに登録されているホストのみ利用できます。
(他のドメインでもOKです。)
数字の小さいほうが優先順位が高くなります。
IN      MX      90      oml01.hebo.test.
IN      MX      95      oml02.hebo.test.