unbound: Increase size of send/receive buffers

This will allow to not drop any packets when there is a
peak in queries

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2017-03-28 10:24:40 +01:00
parent 5012e53c29
commit c20b20092f

View File

@@ -278,6 +278,10 @@ write_tuning_conf() {
# Increase parallel queries
echo "outgoing-range: 8192"
echo "num-queries-per-thread: 4096"
# Use larger send/receive buffers
echo "so-sndbuf: 4m"
echo "so-rcvbuf: 4m"
) > /etc/unbound/tuning.conf
}