<div dir="ltr">Hi guys for both responses. I was thinking more something to u32 module on iptables. Let me be clear: the only fix values are the length of the random charters that is "8" and the mix letters/numbers. What I was trying to do is something like:<div><br></div><div>If the first 8 characters are random</div><div>and there are more then 2 numbers</div><div>then block</div><div>else allow</div><div><br></div><div>Anyone can suggest me something for that?<br><br>Regards</div><div><br></div><div>Federico</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-08 14:55 GMT+01:00 Aleš Rygl <span dir="ltr"><<a href="mailto:ales@rygl.net" target="_blank">ales@rygl.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<p>Hi Frederico.</p>
<p>It is imho almost impossible to block such queries. They are usually running at low rates per client per second but from many clients... I have already opened a feature request for a dynamic rule that would allow to insert rules based on dnsdist statistics of responses: <a href="https://github.com/PowerDNS/pdns/issues/3888" target="_blank">https://github.com/PowerDNS/pdns/issues/3888</a></p>
<p>In the mean time it could be done by an external script grabing topResponses from dnsdist, analyzing them ans install a rule.</p>
<p>Regards</p>
<p>Ales</p><div><div class="h5">
<p> </p>
<p>On Wed, 8 Jun 2016 13:53:37 +0100, Federico Olivieri wrote:</p>
<blockquote type="cite" style="padding-left:5px;border-left:#1010ff 2px solid;margin-left:5px;width:100%">
<div dir="ltr">Hi everybody,
<div></div>
<div>My server receives some random queries as <a href="http://xfz3421xc.domain.com" target="_blank">xfz3421xc.domain.com</a>, <a href="http://jh65jj3e.domain2.com" target="_blank">jh65jj3e.domain2.com</a></div>
<div></div>
<div>Can someone suggests some LUA script to block these kind of random queries?<br><br>Thanks</div>
<div></div>
<div>Federico</div>
</div>
</blockquote>
</div></div></div>
<br>_______________________________________________<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/mailman/listinfo/dnsdist</a><br>
<br></blockquote></div><br></div>