- 论坛徽章:
- 4
|
10可用积分
[root@localhost named]# sbin/named -g
18-Dec-2008 14:06:23.188 starting BIND 9.4.3 -g
18-Dec-2008 14:06:23.188 adjusted limit on open files from 1024 to 1048576
18-Dec-2008 14:06:23.188 found 2 CPUs, using 2 worker threads
18-Dec-2008 14:06:23.189 using up to 4096 sockets
18-Dec-2008 14:06:23.194 loading configuration from '/usr/named/etc/named.conf'
18-Dec-2008 14:06:23.194 /usr/named/etc/named.conf:10: unknown option 'options' //10行 错误信息,未知选项
18-Dec-2008 14:06:23.195 /usr/named/etc/named.conf:16: unknown option 'zone' //未知区域
18-Dec-2008 14:06:23.195 /usr/named/etc/named.conf:21: unknown option 'zone'
18-Dec-2008 14:06:23.195 /usr/named/etc/named.conf:26: '}' expected near end of
file
18-Dec-2008 14:06:23.195 loading configuration: unexpected token
18-Dec-2008 14:06:23.195 exiting (due to fatal error)
namd.conf文件如下:
[root@localhost etc]# cat named.conf
key "rndc-key" {
algorithm hmac-md5;
secret "parwOLhRdcU+47KD8Mo82Q==";
};
controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
options {
directory "/var/named";
pid-file "named.pid";
};
zone "." IN {
type hint;
file "/var/named/named.root";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "/var/named/local";
}; |
|