<div dir="ltr">Hi Remi,<br><br>This is the config I am running . I assigned a server a pool name "private" and use that name for the cache policy. What I am doing wrong?<div><br></div><div><div>root@UKLNDLABPI:~# cat /etc/dnsdist/dnsdist.conf </div><div>newServer({address="192.168.99.10", name="DMZ", order=10, pool=private})</div><div>newServer({address="8.8.8.8", name="GOOGLE", order=255, pool=public})</div><div>setServerPolicy(leastOutstanding)</div><div>addDelay(MaxQPSIPRule(30, 32, 128), 100)</div><div>addAction(MaxQPSIPRule(50), DropAction())</div><div>setServerPolicy(firstAvailable)</div><div>addAnyTCRule()</div><div>pc = newPacketCache(10000, 86400, 0, 60, 60)</div><div>getPool("private"):setCache(pc)</div><div>webserver("<a href="http://192.168.1.3:8083">192.168.1.3:8083</a>", "supersecret")</div><div>setACL("<a href="http://192.168.0.0/16">192.168.0.0/16</a>")</div><div>addACL("127.0.0.1")</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-29 8:40 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">Hi,<br>
<span class=""><br>
On 11/28/2016 10:19 PM, Federico Olivieri wrote:<br>
>> showRules()<br>
> # Matches Rule Action<br>
> 0 0 IP (/32, /128) match for QPS over 30 delay<br>
> by 100 msec<br>
> 1 0 IP (/32, /64) match for QPS over 50 drop<br>
> 2 0 (qtype==ANY) && (UDP) tc=1 answer<br>
<br>
</span>Hmm, you have no rules routing traffic to the "private" pool, so it<br>
won't get any query.<br>
<span class=""><br>
>> showPools()<br>
> Name Cache Servers<br>
> DMZ <a href="http://192.168.99.10:53" rel="noreferrer" target="_blank">192.168.99.10:53</a><br>
</span>> <<a href="http://192.168.99.10:53" rel="noreferrer" target="_blank">http://192.168.99.10:53</a>>, GOOGLE <a href="http://8.8.8.8:53" rel="noreferrer" target="_blank">8.8.8.8:53</a> <<a href="http://8.8.8.8:53" rel="noreferrer" target="_blank">http://8.8.8.8:53</a>><br>
> private 0/10000<br>
<br>
You also have no server in the "private" pool, so you need to fix that<br>
before routing queries to that pool, otherwise they will get dropped.<br>
<div class="HOEnZb"><div class="h5"><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>