<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Constantia,'Hoefler Text',serif;" dir="ltr">
<p>Hello Remi <br>
</p>
<p></p>
<div class="tw-ta-container F0azHf tw-nfl" id="tw-target-text-container" tabindex="0">
<pre class="tw-data-text tw-text-large tw-ta" data-placeholder="Traduction" id="tw-target-text" style="text-align:left" dir="ltr"><span class="Y2IQFc" lang="en">yes it's weird, because in the web interface it says that the cache is working, here is my configuration</span></pre>
</div>
<br>
<p></p>
<p><br>
</p>
<p><br>
</p>
<p></p>
<div>-- == Generic Configuration ==<br>
setACL("0.0.0.0/0")<br>
-- https://dnsdist.org/guides/console.html<br>
controlSocket("127.0.0.1")<br>
-- setKey("please generate a fresh private key with makeKey()")<br>
addLocal("IPServer:53")<br>
setLocal("0.0.0.0:53")<br>
<br>
----------------- Mes serveurs ------------------------<br>
newServer({name="unbound",pool="resolverTopnet", address="IPserver1", qps=2000, order=1})<br>
newServer({name="pdns-recursor",pool="resolverTopnet", address="IPserver2", order=2})<br>
<br>
-------------------------------------------------------cache -----------------------<br>
setPoolServerPolicy(leastOutstanding, "resolverTopnet")<br>
pc = newPacketCache(2000000, {maxTTL=43200, minTTL=0,temporaryFailureTTL=60, staleTTL=60, dontAge=false})<br>
getPool("resolverTopnet"):setCache(pc)<br>
addAction(AllRule(), PoolAction("resolverTopnet"))<br>
-----------------------------------------------Begin security rule ------------------------------------------<br>
local dbr = dynBlockRulesGroup()<br>
dbr:setQueryRate(250, 10, "Exceeded query rate", 20)<br>
dbr:setRCodeRate(DNSRCode.NXDOMAIN, 20, 10, "Exceeded NXD rate", 60)<br>
dbr:setRCodeRate(DNSRCode.SERVFAIL, 20, 10, "Exceeded ServFail rate", 60)<br>
dbr:setQTypeRate(DNSQType.ANY, 5, 10, "Exceeded ANY rate", 180)<br>
--dbr:setResponseByteRate(1000, 10, "Exceeded resp BW rate", 60)<br>
<br>
function maintenance()<br>
dbr:apply()<br>
end<br>
addAction(MaxQPSIPRule(100), DropAction())<br>
addAction(MaxQPSIPRule(50, 24, 64), DropAction())<br>
addAction({"nl.", "be."}, QPSAction(1))<br>
---------------------------------------------------End security rule--------------------------</div>
<div><br>
Regards <br>
</div>
<p></p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De :</b> Pdns-users <pdns-users-bounces@mailman.powerdns.com> de la part de pdns-users-request@mailman.powerdns.com <pdns-users-request@mailman.powerdns.com><br>
<b>Envoyé :</b> lundi 12 septembre 2022 14:00<br>
<b>À :</b> pdns-users@mailman.powerdns.com<br>
<b>Objet :</b> [EXTERNE]Pdns-users Digest, Vol 236, Issue 9</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">ATTENTION:Cet e-mail provient d'une personne externe à TOPNET. Ne pas cliquer sur des liens ou ouvrir des pièces jointes à moins que vous êtes absolument sûr de l'origine de l'e-mail.<br>
'<br>
<br>
Send Pdns-users mailing list submissions to<br>
pdns-users@mailman.powerdns.com<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://mailman.powerdns.com/mailman/listinfo/pdns-users" id="LPlnk397492" previewremoved="true">
https://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
pdns-users-request@mailman.powerdns.com<br>
<br>
You can reach the person managing the list at<br>
pdns-users-owner@mailman.powerdns.com<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Pdns-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: [dnsdist] Dnsdist not reading from the cache (Remi Gacogne)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 12 Sep 2022 10:19:19 +0200<br>
From: Remi Gacogne <remi.gacogne@powerdns.com><br>
To: "pdns-users@mailman.powerdns.com"<br>
<pdns-users@mailman.powerdns.com><br>
Subject: Re: [Pdns-users] [dnsdist] Dnsdist not reading from the cache<br>
Message-ID: <103ecf7b-b663-78ff-7be1-3a3b41a34f3c@powerdns.com><br>
Content-Type: text/plain; charset="utf-8"; Format="flowed"<br>
<br>
On 09/09/2022 17:38, SAMI RAHAL via Pdns-users wrote:<br>
> The server is in production it receives requests as shown in this summary<br>
><br>
><br>
> Uptime: 17 days, Number of queries: 2326402346 (2385.00 qps), ACL drops:<br>
> 0, Dynamic drops: 27076173, Rule drops: 6451838<br>
> Average response time: 9.40 ms, CPU Usage: 26.50%, Cache hitrate:<br>
> 85.37%, Server selection policy: leastOutstanding<br>
> Listening on: 0.0.0.0:53, ACL: 0.0.0.0/0<br>
<br>
The cache hitrate information from that output indicates that the cache<br>
is working.<br>
If you still think this is not the case, please share an unedited<br>
configuration that we can use to reproduce the issue, and what you do<br>
exactly to test whether the cache is working.<br>
<br>
--<br>
Remi Gacogne<br>
PowerDNS.COM BV - <a href="https://www.powerdns.com/" id="LPlnk288344" previewremoved="true">
https://www.powerdns.com/</a><br>
<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: OpenPGP_signature<br>
Type: application/pgp-signature<br>
Size: 488 bytes<br>
Desc: OpenPGP digital signature<br>
URL: <<a href="http://mailman.powerdns.com/pipermail/pdns-users/attachments/20220912/bab4f3a6/attachment-0001.sig" id="LPlnk293631" previewremoved="true">http://mailman.powerdns.com/pipermail/pdns-users/attachments/20220912/bab4f3a6/attachment-0001.sig</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Pdns-users mailing list<br>
Pdns-users@mailman.powerdns.com<br>
<a href="https://mailman.powerdns.com/mailman/listinfo/pdns-users" id="LPlnk763497" previewremoved="true">https://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Pdns-users Digest, Vol 236, Issue 9<br>
******************************************<br>
</div>
</span></font></div>
</div>
</body>
</html>