<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">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Constantia, "Hoefler Text", serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p></p>
<pre>Hello <span class="highlight" id="0.43191342475436023" name="searchHitInReadingPane">dnsdist</span> community,<br></pre>
<p></p>
<p></p>
<div>for those running dnsdist I'm wondering is anyone has set up cache. <br>
<br>
If you have, I'd appreciate pointers in your strategies (and/or some<br>
examples?).</div>
<br>
<p></p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div align="left"><br>
</div>
<div align="left"><br>
</div>
<div align="left">
<div align="left">
<pre style="margin-top:14pt; margin-bottom:14pt"><br></pre>
</div>
</div>
</div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De :</b> SAMI RAHAL<br>
<b>Envoyé :</b> samedi 23 juillet 2022 10:29:13<br>
<b>À :</b> pdns-users@mailman.powerdns.com<br>
<b>Objet :</b> Re: [dnsdist] Dnsdist not reading from the cache</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Constantia, "Hoefler Text", serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<p>Hi <br>
</p>
<p>this is my entire configuration thank you</p>
<p></p>
<div>-- Include additional configuration<br>
includeDirectory("/etc/dnsdist/conf.d")<br>
setACL("0.0.0.0/0")<br>
controlSocket("127.0.0.1")<br>
setKey("Key")<br>
webserver ("DnsdistIP:8083", "Password", "Key",{}, "authoroziedIP")<br>
addLocal("DnsdistIP:53")<br>
setLocal("0.0.0.0:53")<br>
----------------- Backend------------------------<br>
newServer({name="unbound",pool="resolver", address="IPresolver1", qps=2000, order=1})<br>
newServer({name="pdns-recursor",pool="resolver", address="IPresolver2", order=2})<br>
<br>
-------------------------- Begin Log ----------------------<br>
<br>
<br>
--addAction(AllRule(), LogAction("/var/log/dnsdist.log", false, true, false,true))<br>
--addAction(AllRule(), LogAction("/var/log/dnsdist/dnsdist.log",true, true,true,true,true))<br>
--addAction(AllRule(), LogAction("/var/log/dnsdist/dnsdist.log",false, true, false, false, true))<br>
<br>
-------------------------------------------------------caching -----------------------<br>
setPoolServerPolicy(leastOutstanding, "resolver")<br>
pc = newPacketCache(2000000, {maxTTL=43200, minTTL=0,temporaryFailureTTL=60, staleTTL=60, dontAge=false})<br>
getPool("resolver"):setCache(pc)<br>
addAction(AllRule(), PoolAction("resolver"))<br>
-----------------------------------------------Begin security rules -------------------------<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 rules--------------------------<br>
<br>
</div>
<br>
<p></p>
<p><br>
</p>
<div id="Signature">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div align="left"><br>
</div>
<div align="left"><br>
</div>
<div align="left">
<div align="left">
<pre style="margin-top:14pt; margin-bottom:14pt">Cordialement, Sami Rahal Service Hosting DNS et Cloud Direction Technique & SI Siège Social TOPNET, Centre Urbain Nord Tél. :71185000 GSM :99 459 812 </pre>
</div>
</div>
</div>
</div>
<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> vendredi 22 juillet 2022 14:00<br>
<b>À :</b> pdns-users@mailman.powerdns.com<br>
<b>Objet :</b> [EXTERNE]Pdns-users Digest, Vol 234, Issue 7</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="LPlnk959109" 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 (Klaus Darilion)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 22 Jul 2022 12:53:51 +0200<br>
From: Klaus Darilion <klaus.darilion@nic.at><br>
To: Jacob Bunk Nielsen <jbn@one.com> ,<br>
"pdns-users@mailman.powerdns.com" <pdns-users@mailman.powerdns.com><br>
Subject: Re: [Pdns-users] [dnsdist] Dnsdist not reading from the cache<br>
Message-ID: <d9adee25407c4b9da740af015e124d2a@nic.at><br>
Content-Type: text/plain; charset="us-ascii"<br>
<br>
In old dnsdist versions the chache was per "cookie". So make sure to test with DNS cookies.<br>
regards<br>
Klaus<br>
<br>
Von: dnsdist <dnsdist-bounces@mailman.powerdns.com> Im Auftrag von Jacob Bunk Nielsen via dnsdist<br>
Gesendet: Freitag, 22. Juli 2022 12:28<br>
An: dnsdist@mailman.powerdns.com<br>
Betreff: Re: [dnsdist] Dnsdist not reading from the cache<br>
<br>
On 22/07/2022 12.11, SAMI RAHAL via dnsdist wrote:<br>
<br>
Hello dnsdist community,<br>
<br>
The dnsdist cache does not work<br>
<br>
Version: dnsdist 1.7.0 (Lua 5.1.4 [LuaJIT 2.0.4])<br>
<br>
<br>
<br>
here is my configuration:<br>
setPoolServerPolicy(leastOutstanding, "cacheTestiong")<br>
test_pc = newPacketCache(2000000, {maxTTL=43200, minTTL=0,temporaryFailureTTL=60, staleTTL=60, dontAge=false})<br>
getPool("cacheTestiong"):setCache(test_pc)<br>
addAction(AllRule(), PoolAction("cacheTestiong"))<br>
<br>
<br>
<br>
Are you certain that this is your entire configuration? I'm guessing it's not.<br>
<br>
<br>
<br>
Best regards,<br>
<br>
Jacob<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.powerdns.com/pipermail/pdns-users/attachments/20220722/3e805195/attachment-0001.htm" id="LPlnk333587" previewremoved="true">http://mailman.powerdns.com/pipermail/pdns-users/attachments/20220722/3e805195/attachment-0001.htm</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="LPlnk927819" previewremoved="true">https://mailman.powerdns.com/mailman/listinfo/pdns-users</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Pdns-users Digest, Vol 234, Issue 7<br>
******************************************<br>
</div>
</span></font></div>
</div>
</div>
</div>
</body>
</html>