mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 14:21:38 +01:00
pkg/upstream: set edns0 and Do when required (#4055)
Set these options of the requests warrents them. Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
parent
1efd7e3694
commit
9230e1772b
@ -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")
|
return nil, fmt.Errorf("no full server is running")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size := state.Size()
|
||||||
|
do := state.Do()
|
||||||
req := new(dns.Msg)
|
req := new(dns.Msg)
|
||||||
req.SetQuestion(name, typ)
|
req.SetQuestion(name, typ)
|
||||||
|
req.SetEdns0(uint16(size), do)
|
||||||
|
|
||||||
nw := nonwriter.New(state.W)
|
nw := nonwriter.New(state.W)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user