当我尝试验证 DNS 配置时出现此错误:
/etc/bind/named.conf.options:27: 未知选项‘sudo’
这些是我的配置:
$ sudo nano /etc/bind/named.conf
// This is the primary configuration file for the BIND DNS server na$
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information$
// structure of BIND configuration files in Debian, *BEFORE* you cus$
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.c$
include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";
$ sudo nano /etc/bind/named.conf.local
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if
// organization
//include "/etc/bind/zones.rfc1918";
zone "ataxiagames.com" {
type master;
file "etc/bind/for.ataxiagame.com";
allow-transfer {192.168.109.132; };
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/etc/bind/rev.ataxiagames.com";
allow-transfer {192.168.109.132; };
};