Skip to content

Commit

Permalink
Merge pull request #2 from GotenXiao/patch-1
Browse files Browse the repository at this point in the history
Remove reference to dnsutil.Dedup
  • Loading branch information
hawell committed Sep 5, 2018
2 parents a79b8c7 + df0afea commit b89a11f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/miekg/dns"
"golang.org/x/net/context"
"github.com/coredns/coredns/request"
"github.com/coredns/coredns/plugin/pkg/dnsutil"
)

// ServeDNS implements the plugin.Handler interface.
Expand Down Expand Up @@ -78,7 +77,6 @@ func (redis *Redis) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.M
m.Answer = append(m.Answer, answers...)
m.Extra = append(m.Extra, extras...)

m = dnsutil.Dedup(m)
state.SizeAndDo(m)
m, _ = state.Scrub(m)
w.WriteMsg(m)
Expand All @@ -99,4 +97,4 @@ func (redis *Redis) errorResponse(state request.Request, zone string, rcode int,
state.W.WriteMsg(m)
// Return success as the rcode to signal we have written to the client.
return dns.RcodeSuccess, err
}
}

0 comments on commit b89a11f

Please sign in to comment.