mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
log more for no-such-zone
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user