Added refuseany (enabled by default)
Added ratelimit and refuseany to the config file (for manual editing only)
This commit is contained in:
Andrey Meshkov
2018-11-26 13:38:17 +03:00
parent a6c9210461
commit a0482fc201
3 changed files with 8 additions and 3 deletions

View File

@@ -27,8 +27,6 @@ func (p *plug) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (
q := r.Question[0]
if q.Qtype == dns.TypeANY {
log.Printf("Got request with type ANY, will respond with NOTIMP\n")
state := request.Request{W: w, Req: r, Context: ctx}
rcode := dns.RcodeNotImplemented