Bind

為轉發器綁定設置埠

  • June 28, 2020

根據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關鍵字。

貨代{
127.0.0.1 2053埠;
};

引用自:https://serverfault.com/questions/956447