dns: adjust named config for DDoS

Increase a number of values, add some limits.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2023-06-14 15:20:44 -07:00
parent adef5b55fd
commit e6d08451ca

View file

@ -37,7 +37,7 @@ options {
pid-file "/var/run/named/named.pid";
statistics-file "/var/log/named.stats";
provide-ixfr no;
tcp-clients 1000;
tcp-clients 10000;
version "cowbell++";
@ -50,9 +50,14 @@ options {
notify yes;
minimal-responses yes;
// rate-limit requests
max-ncache-ttl 3600;
max-cache-size 1024M;
rate-limit {
responses-per-second 25;
responses-per-second 50;
window 5;
max-table-size 2000000;
min-table-size 500000;
ipv4-prefix-length 32;
};
};
//