Commit 7b93ce2e authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

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
parent 32671bc9
......@@ -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
......
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