在“options”附近重新定义了“options”

在“options”附近重新定义了“options”

我正在尝试为我的根服务器配置 named.conf,但是当我运行 named-checkconf 时,我收到以下消息

/etc/bind/named.conf:13: 'options' redefined near 'options'

我的named.conf如下所示:

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";

options {
          directory "/etc/bind";
          listen-on port 53 { any; };
          allow-query { any; };
#         forwarders { 142.204.1.2; };
#         recursion yes;
        };
zone "." IN {
        type hint;
        file "root.zone"
};

zone "20.168.192.in-addr.arpa" IN {
        type hint;
        file "igurvich-rev.db";
};

答案1

解决了。​​我尝试使用 named.conf 和 named.conf.options 中的选项时出现冗余,因此我只需编辑第 1 行即可

相关内容