BIND拆分视图DNSconfiguration问题

我们有两台DNS服务器:一台由ISP控制的外部服务器和一台由我们控制的内部服务器。 我想要foo.example.com的内部请求映射到192.168.100.5和外部请求继续映射到1.2.3.4,所以我试图configuration一个视图绑定。 不幸的是,当我尝试重新加载configuration时,绑定失败。 我确定我错过了一些简单的东西,但我无法弄清楚它是什么。

options { directory "/var/cache/bind"; forwarders { 8.8.8.8; 8.8.4.4; }; auth-nxdomain no; # conform to RFC1035 listen-on-v6 { any; }; }; zone "." { type hint; file "/etc/bind/db.root"; }; zone "localhost" { type master; file "/etc/bind/db.local"; }; zone "127.in-addr.arpa" { type master; file "/etc/bind/db.127"; }; zone "0.in-addr.arpa" { type master; file "/etc/bind/db.0"; }; zone "255.in-addr.arpa" { type master; file "/etc/bind/db.255"; }; view "internal" { zone "example.com" { type master; notify no; file "/etc/bind/db.example.com"; }; }; zone "example.corp" { type master; file "/etc/bind/db.example.corp"; }; zone "100.168.192.in-addr.arpa" { type master; notify no; file "/etc/bind/db.192"; }; 

我已经在视图中排除了允许recursionrecursion的条目,试图简化configuration。 如果我删除视图,并直接加载example.com区域,它工作正常。

任何意见,我可能会失踪?

发布named的结果。

首先,检查你的日志,但我想你忘了

 acl "lan_hosts" { 192.168.0.0/24; # network address of your local LAN 127.0.0.1; # allow loop back }; view "internal" { match-clients { lan_hosts; }; [...] };