- 论坛徽章:
- 0
|
我配置完bind view后,无法启动bind ,察看 /var/log/messages日志文件,发现如下提示:
Mar 2 10:49:32 named[7636]: starting BIND 9.3.2 -c /opt/modules/named/etc/named.conf
Mar 2 10:49:32 named[7636]: found 4 CPUs, using 4 worker threads
Mar 2 10:49:32 named[7636]: loading configuration from '/opt/modules/named/etc/named.conf'
Mar 2 10:49:32 named[7636]: /opt/modules/named/etc/named.conf:82: unknown option 'view'
Mar 2 10:49:32 named[7636]: loading configuration: failure
无论怎么修改都出现如下提示,麻烦各位老大帮忙解答?? 以下是我的named.conf文件内容。
options {
directory "/opt/modules/named/etc/namedb";
pid-file "/var/run/named/pid";
dump-file "/var/dump/named_dump.db";
statistics-file "/var/stats/named.stats";
// If named is being used only as a local resolver, this is a safe default.
// For named to be accessible to the network, comment this option, specify
// the proper IP address, or delete this option.
listen-on {xxx.xxx.xxx.xxx; };
// If you have IPv6 enabled on this system, uncomment this option for
// use as a local resolver. To give access to the network, specify
// an IPv6 address, or the keyword "any".
// listen-on-v6 { ::1; };
// 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 {
202.106.46.151;
};
*/
/*
* 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 versions 8 and later
* use a pseudo-random unprivileged UDP port by default.
*/
// query-source address * port 53;
};
// If you enable a local name server, don't forget to enter 127.0.0.1
// first in your /etc/resolv.conf so this server will be queried.
// Also, make sure to enable it in /etc/rc.conf.
acl "cnc" {xxx.xxx.xxx.xxx;};
acl "telecom" {xxx.xxx.xxx.xxx;};
view "cnc" {
match-clients { cnc; };
recursion yes;
zone "." IN {
type hint;
file "named.root";
};
zone "localhost" IN {
type master;
file "localhost.rev";
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "named.local";
};
include "master/cnc.def";
};
view "telecom" {
match-clients { telecom; };
recursion yes;
zone "." {
type hint;
file "named.root";
};
zone "localhost" IN {
type master;
file "localhost.rev";
};
zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "named.local";
};
[ 本帖最后由 yutaka.shi 于 2007-3-4 14:04 编辑 ] |
|