diff --git a/plugin/pkg/upstream/upstream.go b/plugin/pkg/upstream/upstream.go index 894488ffd..eacb9b4d5 100644 --- a/plugin/pkg/upstream/upstream.go +++ b/plugin/pkg/upstream/upstream.go @@ -25,8 +25,11 @@ func (u *Upstream) Lookup(ctx context.Context, state request.Request, name strin return nil, fmt.Errorf("no full server is running") } + size := state.Size() + do := state.Do() req := new(dns.Msg) req.SetQuestion(name, typ) + req.SetEdns0(uint16(size), do) nw := nonwriter.New(state.W)