我已经configuration为一个域的转发器。
zone "myself.abc.com" in { type forward; forward first; forwarders { 10.10.20.10 port 53; }; forward-source { 169.254.65.18; }; };
我正在尝试有一个configuration,这与备份,即如果我的货代dint响应我可以创build一个本地区域文件,并提供一些DNS服务器不发送备份IP。
选项1 – 我已经尝试过,使用
zone "abc.com" in { type master; file "sample.zone"; };
它不工作,因为它总是开始使用sample.zone,永远不会去转发。
任何人都可以提供这个解决scheme,非常感谢您的回应:)
这是因为BIND现在认为它是域的权威,即type master; 。 这是正常的。
如果域是你自己的,那么达到相同结果的正确方法是将本地BINDconfiguration为辅助名称服务器( type slave; )并放弃master和forward :
zone "example.com" { type slave; file "example.zone"; masters { 198.51.100.100; }; };
在这种情况下,您应该拥有主权威名称服务器的configuration权限,以允许从本地networking进行区域传输。 在configuration为type master;的授权名称服务器上生成的configuration示例type master; 为域名:
allow-transfer { other_ns; }; acl other_ns { 192.0.2.100; // the current secondary name server(s) 203.0.113.80; // IP of your local network };
(这里所有的IP地址都是RFC 5737 TEST-NET的例子,用你自己的replace。)