diff --git a/coolDns.go b/coolDns.go index 6b1ff0b..9914591 100644 --- a/coolDns.go +++ b/coolDns.go @@ -360,6 +360,10 @@ func handleRequest(w dns.ResponseWriter, r *dns.Msg, zone zoneView) { } } + if len(m.Answer) == 0 { + m.SetRcode(m, dns.RcodeNameError) + } + w.WriteMsg(m) }