Commit f5e29c14 authored by Miek Gieben's avatar Miek Gieben

log more for no-such-zone

parent 5de2f873
...@@ -365,7 +365,7 @@ func (s *Server) ServeDNS(w dns.ResponseWriter, r *dns.Msg) { ...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment