From 8ca4558207f720d47fcdb3b85040febc495137eb Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 12 Jul 2015 14:54:26 +0200 Subject: [PATCH] Increase the negative cache size --- unbound.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unbound.sh b/unbound.sh index b415f43..ae92975 100755 --- a/unbound.sh +++ b/unbound.sh @@ -2,7 +2,7 @@ KEYS_DIR="/opt/dnscrypt-wrapper/etc/keys" -reserved=8388608 +reserved=12582912 availableMemory=$((1024 * $(fgrep MemAvailable /proc/meminfo | sed 's/[^0-9]//g') - $reserved)) if [ $availableMemory -le 0 ]; then exit 1 @@ -56,6 +56,7 @@ server: outgoing-range: 8192 msg-cache-size: @MSG_CACHE_SIZE@ rrset-cache-size: @RR_CACHE_SIZE@ + neg-cache-size: 4M access-control: 0.0.0.0/0 allow access-control: ::0/0 allow