我想通过绑定创build一些访问策略,我想知道是否有可能在绑定每客户端设置dynamic/参数查找答案。 就像是:
// Answer to nslookup example.com if($client_ip == '192.168.1.10') return ('80.36.36.200'); else return ('127.0.0.1');
或者我可以在另一个接口上使用-c secondary-bind-config.conf创build一个辅助绑定实例,但是我想只运行一个绑定实例。
你使用查看语句
从zytrax指南 :
view "local" { match-clients { 192.168.1.10;}; zone "example.com" { type master; file "example.com-80.36.etc"; }; }; view "all" { match-clients { "any";}; zone "example.com" { type master; file "example.com-127.etc"; }; };
在一个区域文件中包含一组ips,第二个文件 – 另一个文件。