From 620212ad37a217fa5a283c20178a6bce738f0de6 Mon Sep 17 00:00:00 2001 From: Eugene Bujak Date: Tue, 25 Sep 2018 18:34:01 +0300 Subject: [PATCH] coredns -- don't try to be smart and replace 127.0.0.1 with NXDOMAIN yet -- need research on that first --- coredns_plugin/coredns_plugin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coredns_plugin/coredns_plugin.go b/coredns_plugin/coredns_plugin.go index 78c9bb9a..0000156c 100644 --- a/coredns_plugin/coredns_plugin.go +++ b/coredns_plugin/coredns_plugin.go @@ -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