log more for no-such-zone

This commit is contained in:
Miek Gieben 2016-04-21 09:00:02 +00:00
parent 5de2f87303
commit f5e29c14d3

View file

@ -365,7 +365,7 @@ func (s *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg) {
// Still here? Error out with REFUSED and some logging // Still here? Error out with REFUSED and some logging
remoteHost := w.RemoteAddr().String() remoteHost := w.RemoteAddr().String()
DefaultErrorFunc(w, r, dns.RcodeRefused) DefaultErrorFunc(w, r, dns.RcodeRefused)
log.Printf("[INFO] %s - No such zone at %s (Remote: %s)", q, s.Addr, remoteHost) log.Printf("[INFO] \"%s %s %s\" - No such zone at %s (Remote: %s)", dns.Type(r.Question[0].Qtype), dns.Class(r.Question[0].Qclass), q, s.Addr, remoteHost)
} }
// DefaultErrorFunc responds to an DNS request with an error. // DefaultErrorFunc responds to an DNS request with an error.