server: drop logging
* 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
@@ -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
