<div dir="ltr">Hello All,<div><br></div><div>I am a newbie for unbound, please apologize if my question is wrong or my understanding is wrong.</div><div><br></div><div>I see below variables make unbound to use a single configuration for all cache resolvers.</div><div>As these variables are global and don't bind with any unbound context or configuration for each cache</div><div><br></div><div>I wonder how to solve this problem? as I need different cache conf for different cache resolvers.</div><div><br></div><div><pre style="border:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><a class="gmail-l gmail-selected" name="64" href="https://indexing2.f5net.com/source/xref/tmos-dns-bugs/ports/unbound/build/util/data/msgreply.c#64" style="text-decoration-line:none;display:inline-block;width:6ex;text-align:right;padding-right:0px;background-color:rgb(221,221,221);color:rgb(32,48,162);margin-right:0.5ex">64 </a><span class="gmail-fold-space" style="margin-left:0.2em;margin-right:0.2em;width:11px;height:11px;display:inline-block"> </span><span class="gmail-c" style="color:rgb(102,102,102)">/** If we serve expired entries and prefetch them */</span>
<a class="gmail-l gmail-selected" name="65" href="https://indexing2.f5net.com/source/xref/tmos-dns-bugs/ports/unbound/build/util/data/msgreply.c#65" style="text-decoration-line:none;display:inline-block;width:6ex;text-align:right;padding-right:0px;background-color:rgb(221,221,221);color:rgb(32,48,162);margin-right:0.5ex">65 </a><span class="gmail-fold-space" style="margin-left:0.2em;margin-right:0.2em;width:11px;height:11px;display:inline-block"> </span><a href="https://indexing2.f5net.com/source/s?defs=THREAD&project=tmos-dns-bugs" class="gmail-intelliWindow-symbol" style="text-decoration-line:none;color:rgb(32,48,162)">THREAD</a> <b>int</b> <a class="gmail-xv" name="SERVE_EXPIRED" style="color:rgb(204,51,0);font-weight:bold"></a><a href="https://indexing2.f5net.com/source/s?refs=SERVE_EXPIRED&project=tmos-dns-bugs" class="gmail-xv gmail-intelliWindow-symbol" style="text-decoration-line:none;color:rgb(204,51,0);font-weight:bold">SERVE_EXPIRED</a> = 0;
<a class="gmail-l gmail-selected" name="66" href="https://indexing2.f5net.com/source/xref/tmos-dns-bugs/ports/unbound/build/util/data/msgreply.c#66" style="text-decoration-line:none;display:inline-block;width:6ex;text-align:right;padding-right:0px;background-color:rgb(221,221,221);color:rgb(32,48,162);margin-right:0.5ex">66 </a><span class="gmail-fold-space" style="margin-left:0.2em;margin-right:0.2em;width:11px;height:11px;display:inline-block"> </span><span class="gmail-c" style="color:rgb(102,102,102)">/** Time to serve records after expiration */</span>
<a class="gmail-l gmail-selected" name="67" href="https://indexing2.f5net.com/source/xref/tmos-dns-bugs/ports/unbound/build/util/data/msgreply.c#67" style="text-decoration-line:none;display:inline-block;width:6ex;text-align:right;padding-right:0px;background-color:rgb(221,221,221);color:rgb(32,48,162);margin-right:0.5ex">67 </a><span class="gmail-fold-space" style="margin-left:0.2em;margin-right:0.2em;width:11px;height:11px;display:inline-block"> </span><a href="https://indexing2.f5net.com/source/s?defs=THREAD&project=tmos-dns-bugs" class="gmail-intelliWindow-symbol" style="text-decoration-line:none;color:rgb(32,48,162)">THREAD</a> <a href="https://indexing2.f5net.com/source/s?defs=time_t&project=tmos-dns-bugs" class="gmail-intelliWindow-symbol" style="text-decoration-line:none;color:rgb(32,48,162)">time_t</a> <a class="gmail-xv" name="SERVE_EXPIRED_TTL" style="color:rgb(204,51,0);font-weight:bold"></a><a href="https://indexing2.f5net.com/source/s?refs=SERVE_EXPIRED_TTL&project=tmos-dns-bugs" class="gmail-xv gmail-intelliWindow-symbol" style="text-decoration-line:none;color:rgb(204,51,0);font-weight:bold">SERVE_EXPIRED_TTL</a> = 0;
<a class="gmail-l gmail-selected" name="68" href="https://indexing2.f5net.com/source/xref/tmos-dns-bugs/ports/unbound/build/util/data/msgreply.c#68" style="text-decoration-line:none;display:inline-block;width:6ex;text-align:right;padding-right:0px;background-color:rgb(221,221,221);color:rgb(32,48,162);margin-right:0.5ex">68 </a><span class="gmail-fold-space" style="margin-left:0.2em;margin-right:0.2em;width:11px;height:11px;display:inline-block"> </span><span class="gmail-c" style="color:rgb(102,102,102)">/** TTL to use for expired records */</span>
<a class="gmail-l gmail-target gmail-selected" name="69" href="https://indexing2.f5net.com/source/xref/tmos-dns-bugs/ports/unbound/build/util/data/msgreply.c#69" style="text-decoration-line:none;display:inline-block;width:6ex;text-align:right;padding-right:0px;background:orange;color:yellow;margin-right:0.5ex">69 </a><span class="gmail-fold-space" style="margin-left:0.2em;margin-right:0.2em;width:11px;height:11px;display:inline-block"> </span><a href="https://indexing2.f5net.com/source/s?defs=THREAD&project=tmos-dns-bugs" class="gmail-intelliWindow-symbol" style="text-decoration-line:none;color:rgb(32,48,162)">THREAD</a> <a href="https://indexing2.f5net.com/source/s?defs=time_t&project=tmos-dns-bugs" class="gmail-intelliWindow-symbol" style="text-decoration-line:none;color:rgb(32,48,162)">time_t</a> <a class="gmail-xv" name="SERVE_EXPIRED_REPLY_TTL" style="color:rgb(204,51,0);font-weight:bold"></a><a href="https://indexing2.f5net.com/source/s?refs=SERVE_EXPIRED_REPLY_TTL&project=tmos-dns-bugs" class="gmail-xv gmail-intelliWindow-symbol" style="text-decoration-line:none;color:rgb(204,51,0);font-weight:bold">SERVE_EXPIRED_REPLY_TTL</a> = <span class="gmail-n" style="color:rgb(165,42,42)">30</span>;</pre><pre style="border:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><br></pre><pre style="border:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">Thanks,</pre><pre style="border:0px;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">Ashok</pre></div></div>