mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
server: drop logging (#1581)
* server: drop logging Drop this log line; you have no control over it; it doesn't add that much and can be used to easily ddos you. * compile
This commit is contained in:
@@ -3,7 +3,6 @@ package dnsserver
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"log"
|
|
||||||
"net"
|
"net"
|
||||||
"runtime"
|
"runtime"
|
||||||
"sync"
|
"sync"
|
||||||
@@ -284,10 +283,8 @@ func (s *Server) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg)
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Still here? Error out with REFUSED and some logging
|
// Still here? Error out with REFUSED.
|
||||||
remoteHost := w.RemoteAddr().String()
|
|
||||||
DefaultErrorFunc(w, r, dns.RcodeRefused)
|
DefaultErrorFunc(w, r, dns.RcodeRefused)
|
||||||
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)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// OnStartupComplete lists the sites served by this server
|
// OnStartupComplete lists the sites served by this server
|
||||||
|
|||||||
Reference in New Issue
Block a user