<div dir="ltr">Hi Remi,<div><br>Thanks for that! Now it looks better but still, cache looks empty. I have run the same queries more times hoping to see the "Hits" counter incremented as well ass the Entries but still all zeros</div><div><br></div><div><div>> showServers()</div><div># Name Address State Qps Qlim Ord Wt Queries Drops Drate Lat Outstanding Pools</div><div>0 DMZ <a href="http://192.168.99.10:53">192.168.99.10:53</a> up 0.0 0 10 1 70 0 0.0 11.2 0 private</div><div>1 GOOGLE <a href="http://8.8.8.8:53">8.8.8.8:53</a> up 0.0 0 255 1 0 0 0.0 0.0 0 public</div><div>All 0.0 70 0 </div><div>> </div><div>> getPool("private"):getCache():printStats()</div><div>Entries: 0/10000</div><div>Hits: 0</div><div>Misses: 0</div><div>Deferred inserts: 0</div><div>Deferred lookups: 0</div><div>Lookup Collisions: 0</div><div>Insert Collisions: 0</div><div>TTL Too Shorts: 0</div><div>> </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-29 9:59 GMT+00:00 Remi Gacogne <span dir="ltr"><<a href="mailto:remi.gacogne@powerdns.com" target="_blank">remi.gacogne@powerdns.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 11/29/2016 10:48 AM, Federico Olivieri wrote:<br>
> This is the config I am running . I assigned a server a pool name<br>
> "private" and use that name for the cache policy. What I am doing wrong?<br>
><br>
> root@UKLNDLABPI:~# cat /etc/dnsdist/dnsdist.conf<br>
> newServer({address="192.168.<wbr>99.10", name="DMZ", order=10, pool=private})<br>
> newServer({address="8.8.8.8", name="GOOGLE", order=255, pool=public})<br>
<br>
</span>You probably want to use quotes around private and public, otherwise<br>
they are interpreted as variables, and as they are not defined they<br>
equal to nil.<br>
<br>
However please understand that if you place DMZ in the "private" pool<br>
and GOOGLE in the "public" pool, you won't have any server in the<br>
default pool, which receives all queries that have not been explicitly<br>
routed to another pool with addPoolRule(), PoolAction(),<br>
QPSPoolAction(), setDNSSECPool()..<br>
Therefore you might want to leave your servers in the default pool and<br>
also add them to another one by doing something like this:<br>
<br>
newServer({address="192.168.<wbr>99.10", name="DMZ", order=10, pool={"",<br>
"private"} })<br>
newServer({address="8.8.8.8", name="GOOGLE", order=255, pool={"",<br>
"public"} })<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
--<br>
Remi Gacogne<br>
PowerDNS.COM BV - <a href="https://www.powerdns.com/" rel="noreferrer" target="_blank">https://www.powerdns.com/</a><br>
<br>
</div></div><br>______________________________<wbr>_________________<br>
dnsdist mailing list<br>
<a href="mailto:dnsdist@mailman.powerdns.com">dnsdist@mailman.powerdns.com</a><br>
<a href="https://mailman.powerdns.com/mailman/listinfo/dnsdist" rel="noreferrer" target="_blank">https://mailman.powerdns.com/<wbr>mailman/listinfo/dnsdist</a><br>
<br></blockquote></div><br></div>