questions on bind cache with views

Barry Margolin barmar at
Thu Dec 17 16:23:08 UTC 2009

In article <mailman.3.1261049906.21153.bind-users at>,
 "Young H." <armywide at> wrote:

> On Thu, Dec 17, 2009 at 6:59 PM, Mark Andrews <marka at> wrote:
> > allow-query-cache
> >        Specifies which hosts are allowed to get answers from the
> >        cache. If allow-query-cache is not set then allow-recursion
> >        is used if set, otherwise allow-query is used if set unless
> >        recursion no; is set in which case none; is used, otherwise
> >        the default (localnets; localhost;) is used.
> >
> Thanks for all.
> My english is not good enough to understand for the statement above.
> Does it mean I have to set both allow-query-cache and allow-recursion,
> or either of them?

My English is well :) and that paragraph is still confusing.  Forget 
about the defaults and set all these options the way you want them 

English is not well suited to describing the nested way these defaults 
depend on each other.  It would probably be better if pseudo-code had 
been used:

if allow-query-cache is set
then use it
else if allow-recursion is set
     then allow-query-cache = allow-recursion
     else if allow-query is set
          then if recursion != no
               then allow-query-cache = allow-query
               else allow-query-cache = none
          else allow-query-cache = (localnets; localhost;)

I hope I translated it right -- the clause about allow-query and 
recursion is confusing.

Barry Margolin, barmar at
Arlington, MA
*** PLEASE don't copy me on replies, I'll read them in the group ***

More information about the bind-users mailing list