LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 826|回复: 0

bind-9.3.3配置为什么老是说错误!!

[复制链接]
发表于 2007-7-9 08:17:02 | 显示全部楼层 |阅读模式
[root@mail ~]# service named start
Starting named:
Error in named configuration:
none:0: open: /etc/named.conf: invalid file
[FAILED]
[root@mail ~]# named-check
-bash: named-check: command not found
[root@mail ~]# named-checkconf
[root@mail ~]# named-checkconf
[root@mail ~]#

为什么老是出现错误呀????

options{
        directory " ar/named";
        } ;
Zone "."
       {     Type hint;
            File "named.ca";
        };
zone "localhost" {
                  type master;
                  file "named.local";
                  };

#==> /etc/rndc.conf <==
key "rndc-key" {
        algorithm hmac-md5;
        secret "4E7DojvXvmORQgo2gAb1g==";
};

controls {
        inet 127.0.0.1 port 953
                allow { 127.0.0.1; } keys { "rndc-key"; };
};
# End of named.conf
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表