From 57ade2c3c3804d24857a45a8ab31c10534154dc7 Mon Sep 17 00:00:00 2001
From: Eugene Bujak <hmage@hmage.net>
Date: Wed, 3 Oct 2018 22:25:55 +0300
Subject: [PATCH] Increase querylog size from 1000 to 10000 -- that'll use 32MB
 of memory.

---
 coredns_plugin/querylog.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/coredns_plugin/querylog.go b/coredns_plugin/querylog.go
index a29388fb..3e2ae239 100644
--- a/coredns_plugin/querylog.go
+++ b/coredns_plugin/querylog.go
@@ -16,6 +16,8 @@ import (
 	"github.com/zfjagann/golang-ring"
 )
 
+const logBufferCap = 10000
+
 var logBuffer = ring.Ring{}
 
 type logEntry struct {
@@ -28,7 +30,7 @@ type logEntry struct {
 }
 
 func init() {
-	logBuffer.SetCapacity(1000)
+	logBuffer.SetCapacity(logBufferCap)
 }
 
 func logRequest(question *dns.Msg, answer *dns.Msg, result dnsfilter.Result, elapsed time.Duration, ip string) {