根据http://www.zytrax.com/books/dns/ch7/queries.html#forwarders可以在地址后面指定端口。
但是,当我尝试将其设置为
forwarders {
127.0.0.1 2053;
}
命名检查配置返回
/etc/bind/named.conf.options:12: missing ';' before '2053'
/etc/bind/named.conf.options:12: expected IP address near '2053'
我的 Fulls named.conf.options 文件:
options {
directory "/var/cache/bind";
dnssec-validation no;
auth-nxdomain no;
recursion yes;
allow-recursion { any; };
allow-query { any; };
allow-query-cache { any; };
listen-on { any; };
listen-on-v6 { any; };
forwarders {
127.0.0.1 2053;
};
};
您需要使用
port
关键字。