named.conf 戻る
BINDの全体設定ファイルである。
コメントアウトは行頭に // と打つか、 */ から /* で囲む。
// $FreeBSD: src/etc/namedb/named.conf,v 1.6.2.2 2001/03/05 13:34:52 asmodai Exp $
//
// Refer to the named(8) man page for details. If you are ever going
// to setup a primary server, make sure you've understood the hairy
// details of how DNS is working. Even with simple mistakes, you can
// break connectivity for affected parties, or cause huge amount of
// useless Internet traffic.
options {
directory "/etc/namedb"; (設定ファイルを置いたディレクトリ)
*/ In addition to the "forwarders" clause, you can force your
name
server to never initiate queries of its own, but always ask its (コメントアウトの例)
/* forwarders only, by enabling the following line:
//
forward only;
// If you've got a DNS server around at your upstream provider, enter
// its IP address here, and enable the line below. This will make you
// benefit from its cache, thus reduce overall DNS traffic in the Internet.
forwarders {
sss.ttt.uuu.2; (フォワーダ-の指定 デフォルトでは */ / * によりコメントアウトされている)
};
// Setting up secondaries is way easier and the rough picture for this
// is explained below.
//
// If you enable a local name server, don't forget to enter 127.0.0.1
// into your /etc/resolv.conf so this server will be queried first.
// Also, make sure to enable it in /etc/rc.conf.
zone "." {
type hint;
file "named.ca"; (ルートネームサーバの情報を書いたファイルの指定)
};
zone "aaa.bbb.ccc.jp" { (管理するゾーンのドメイン)
type master;
file "named.local"; (正引き用ゾーンデータベースファイルの指定)
};
zone "rrr.qqq.ppp.IN-ADDR.ARPA" { (管理するゾーンのIPを逆から書く)
type master;
file "local.rev"; (逆引き用ゾーンデータベースファイルの指定)
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "localhost.rev"; (ループバックゾーンの逆引き設定ファイルの指定)
};