mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-07 16:54:16 +01:00
Set EDNS0 when no extra options are set by the dns client (#2195)
This commit is contained in:
parent
43a8ba97e3
commit
d2157bda66
@ -78,6 +78,10 @@ func (u *upstreamResolverBase) ServeDNS(w dns.ResponseWriter, r *dns.Msg) {
|
||||
}()
|
||||
|
||||
log.WithField("question", r.Question[0]).Trace("received an upstream question")
|
||||
// set the EDNS0 buffer size to 4096 bytes to support larger dns records
|
||||
if r.Extra == nil {
|
||||
r.SetEdns0(4096, true)
|
||||
}
|
||||
|
||||
select {
|
||||
case <-u.ctx.Done():
|
||||
|
Loading…
Reference in New Issue
Block a user