BINDが起動できません。 Fedora 8を使っています。 エラーメッセージはこの通りです。 ------------------------------------------------------------------------------------------- named を起動中: Error in named configuration: /etc/named.conf:85: when using 'view' statements, all zones must be in views [失敗] ------------------------------------------------------------------------------------------- 対処法をどなたか教えてください。 お願いします。。
85行はこの通りです。 zone "elines.jp" { type master; file "elines.jp.db"; allow-update { 192.168.0.5; }; };
zone "0.168.192.in-addr.arpa" { type master; file "0.168.192.in-addr.arpa.db"; allow-update { 192.168.0.5; }; };
下記の部分をどこかに入れなければいけないと思うのですが、どこにどのように埋め込めばよいのでしょうか? zone "." IN { type hint; file "named.ca"; };
options { directory "/var/named"; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ // query-source address * port 53; allow-query{ 127.0.0.1; 192.168.0.0/24; }; //allow-transfer{ // xxx.xxx.xxx.xxx; // }; forwarders{ 202.248.37.74; 202.248.20.133; }; };
$TTL 86400 @ IN SOA elines.jp. root.elines.jp.( 2007031400 ; serial 3600 ; refresh (1 hour) 900 ; retry (15 minutes) 604800 ; expire (1 week) 86400 ; negative (1 day) ) IN NS elines.jp. IN MX 10 elines.jp. IN A 192.168.0.5 kingyodaneo IN A 192.168.0.10 kingyodanote1 IN A 192.168.0.20 kingyoda IN CNAME elines.jp. firststep-gym IN CNAME elines.jp. medical IN CNAME elines.jp. education IN CNAME elines.jp.
0.168.192.in-addr.arpa.db
$TTL 86400 @ IN SOA elines.jp. root.elines.jp.( 2007031400 ; serial 3600 ; refresh (1 hour) 900 ; retry (15 minutes) 604800 ; expire (1 week) 86400 ; negative (1 day) ) IN NS elines.jp. 5 IN PTR elines.jp. 10 IN PTR kingyodaneo.elines.jp. 20 IN PTR kingyodanote1.elines.jp.
elines.jp.wan
$TTL 86400 @ IN SOA elines.jp. root.elines.jp.( 2007031400 ; serial 3600 ; refresh (1 hour) 900 ; retry (15 minutes) 604800 ; expire (1 week) 86400 ; negative (1 day) ) IN NS elines.jp. IN MX 10 elines.jp. IN A 222.158.○○..△△ kingyoda IN CNAME elines.jp. firststep-gym IN CNAME elines.jp. medical IN CNAME elines.jp. education IN CNAME elines.jp.
220.158.222.in-addr.arpa.db
$TTL 86400 @ IN SOA elines.jp. root.elines.jp.( 2007031400 ; serial 3600 ; refresh (1 hour) 900 ; retry (15 minutes) 604800 ; expire (1 week) 86400 ; negative (1 day) ) IN NS elines.jp. △△ IN PTR elines.jp.
options { directory "/var/named"; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ // query-source address * port 53; allow-query{ 127.0.0.1; 192.168.0.0/24; }; //allow-transfer{ // xxx.xxx.xxx.xxx; // }; forwarders{ 202.248.37.74; 202.248.20.133; }; };
options { directory "/var/named"; /* * If there is a firewall between you and nameservers you want * to talk to, you might need to uncomment the query-source * directive below. Previous versions of BIND always asked * questions using port 53, but BIND 8.1 uses an unprivileged * port by default. */ // query-source address * port 53; allow-query{ 127.0.0.1; 192.168.0.0/24; }; //allow-transfer{ // xxx.xxx.xxx.xxx; // }; forwarders{ 202.248.37.74; 202.248.20.133; }; };