<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 5 Dec 2019, at 13:49, Harshith Mulky wrote:</p>

<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
<p dir="auto">view "external" {</p>

<p dir="auto">  match-clients { any; };</p>

<p dir="auto">  recursion no;</p>

<p dir="auto">zone "nixcraft.com" IN {</p>

<p dir="auto">    type master;</p>

<p dir="auto">    file "internet.master.nixcraft.com";</p>

<p dir="auto">  };</p>

<p dir="auto">};</p>

<p dir="auto">view "internal" {</p>

<p dir="auto">match-clients { internal; };</p>

<p dir="auto">allow-recursion { any; };</p>
</blockquote>

<p dir="auto">...</p>

<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
<p dir="auto">};</p>
</blockquote>

<p dir="auto">With the views in this order, the external view will always be used.</p>

<p dir="auto">This is because the configuration is scanned from the top until a view<br>
is found whose <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">match-clients</code> specification matches the requesting<br>
client; that view is then used. Since you have <code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0 0.4em" bgcolor="#F7F7F7">match-clients { any; };</code><br>
in the first view, scanning will stop there.</p>

<p dir="auto">Niall O'Reilly</p>
</div>
</div>
</body>
</html>