From 62b22b9ad7634d4824bec846d31da5714bc56a73 Mon Sep 17 00:00:00 2001 From: Niklas Date: Wed, 23 Dec 2020 20:05:35 +0100 Subject: [PATCH] added rcode to acl rejection --- coolDns.go | 1 + 1 file changed, 1 insertion(+) diff --git a/coolDns.go b/coolDns.go index 22026f7..86178b4 100644 --- a/coolDns.go +++ b/coolDns.go @@ -171,6 +171,7 @@ func createServer(zones []zone, config config, aclList map[string]*net.IPNet) *d if !passed { m := new(dns.Msg) m.SetReply(r) + m.SetRcode(r, dns.RcodeRefused) w.WriteMsg(m) return }