aboutsummaryrefslogtreecommitdiff
path: root/plugin/etcd/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/etcd/handler.go')
-rw-r--r--plugin/etcd/handler.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/etcd/handler.go b/plugin/etcd/handler.go
index ebd73d946..f69fdad00 100644
--- a/plugin/etcd/handler.go
+++ b/plugin/etcd/handler.go
@@ -84,10 +84,11 @@ func (e *Etcd) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (
m := new(dns.Msg)
m.SetReply(r)
- m.Authoritative, m.RecursionAvailable, m.Compress = true, true, true
+ m.Authoritative, m.RecursionAvailable = true, true
m.Answer = append(m.Answer, records...)
m.Extra = append(m.Extra, extra...)
+ // TODO(miek): get rid of this by not adding dups in the first place, dnsutil.Append()?
m = dnsutil.Dedup(m)
state.SizeAndDo(m)
m, _ = state.Scrub(m)