[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lightweight DNS server for Spamikaze



Rik van Riel wrote:
On Wed, 03 Oct 2007 07:49:34 +0200
Martijn Lievaart <m@xxxxxxx> wrote:

This is a first stab at a real time DNSBL for Spamikaze. Not tested
to well yet, but seems to work OK. Feel free to include in Spamikaze
if deemed worthy.

I like it! This seems like a great idea for lower traffic lists.


Somehow I suspect it will not work too well on my own list, which
does around 400 queries/seconds/server, but having a faster way to
get systems "on the list" is an excellent idea for smaller lists.

No I would not try that. Well I would, but just to see how bad it performs. It's single threaded. OTOH, I suspect multi threading will not buy you much unless you have a very well performing database server. I'll see if I can do some benchmarks and this may be the trigger to finally write a multithreaded version of Net::DNS::Nameserver.


Another way to speed up stuff would be to read the zone into memory and server from memory. Passivetrap.pl could then sighup the server if the database changes. But profile first, optimize later....

There's also a bug inherent in Net::DNS::Nameserver, it does not truncate udp replies to 512 bytes. But I doubt that limit will be reached with current Spamikaze and I doubt it really matters at all.

Any ideas on how to benchmark stuff like this? Just write a perlscript myself (and use one of the CPAN benchmark modules, obviously)?

M4