mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -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 ( | ||||
| 	"fmt" | ||||
| 	"log" | ||||
| 	"net" | ||||
| 	"runtime" | ||||
| 	"sync" | ||||
| @@ -284,10 +283,8 @@ func (s *Server) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
| 	// Still here? Error out with REFUSED and some logging | ||||
| 	remoteHost := w.RemoteAddr().String() | ||||
| 	// Still here? Error out with REFUSED. | ||||
| 	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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user