DNS(BIND9)
(At your own risk)
◯ キャッシュ設定(named.conf.options)
契約しているISPのNameServerのキャッシュを行なう。
options {
directory "/var/cache/bind";
forwarders {
aaa.bbb.ccc.ddd; // Your ISP's first name-server.
aaa.bbb.ccc.eee; // Your ISP's second name-server.
};
auth-nxdomain no; # conform to RFC1035
};
◯ ローカルネットワーク設定(named.conf.local)
ローカルのプライベートな設定を記述(プライベートアドレス192.168.0.0/24にし、domainをprivate.jpにした例)
// original.jp(private IP area/n-bit)
zone "original.jp" {
type master;
file "/etc/bind/local/original.jp";
};
// private IP area(original.jp)
zone "0.168.192.in-addr.arpa" {
type master;
file "/etc/bind/local/192.168.0";
};
もちろん /etc/bind/local/original.jpと/etc/bind/local/192.168.0のデータベースファイルを作成する
(また、ローカルに新しいPCを加える時このローカルデータベースに追加が必要)。
/etc/bind/named.confに下記記述を確認する(named.conf.optionsと
named.conf.localを読み込む)。
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
Last modified: Sun Apr 2 10:05:42 JST 2006