by metalruler · 14y ago · 0 comments
I ended up hacking something together to firewall any IPs which sent more than 1000 requests in a short period of time.
I can give you one tip to get you started: if you're running named, you can enable logging of every query, something like (hope this formats ok) :
logging {
channel query_logging {
file "/var/log/named/querylog"
versions 3 size 100M;
print-time yes; // timestamp log entries
};
category queries {
query_logging;
};
};