coredns -- don't try to be smart and replace 127.0.0.1 with NXDOMAIN yet -- need research on that first

This commit is contained in:
Eugene Bujak 2018-09-25 18:34:01 +03:00
parent bd0fa4cc4f
commit 620212ad37

View File

@ -384,7 +384,8 @@ func (p *plug) serveDNSInternal(ctx context.Context, w dns.ResponseWriter, r *dn
// is it in hosts?
if val, ok := p.hosts[host]; ok {
// it is, if it's a loopback host, reply with NXDOMAIN
if val.IsLoopback() {
// TODO: research if it's better than 127.0.0.1
if false && val.IsLoopback() {
rcode, err := writeNXdomain(ctx, w, r)
if err != nil {
return rcode, dnsfilter.Result{}, err