On 5 Dec 2019, at 13:49, Harshith Mulky wrote:
> view "external" {
>
> match-clients { any; };
>
> recursion no;
>
> zone "nixcraft.com" IN {
>
> type master;
>
> file "internet.master.nixcraft.com";
>
> };
>
> };
>
> view "internal" {
>
> match-clients { internal; };
>
> allow-recursion { any; };
>
...
> };
With the views in this order, the external view will always be used.
This is because the configuration is scanned from the top until a view
is found whose `match-clients` specification matches the requesting
client; that view is then used. Since you have `match-clients { any; };`
in the first view, scanning will stop there.
Niall O'Reilly
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe
from this list
bind-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/bind-users