mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Set the compress flag for the responses from external DNS servers to
avoid sending DNS replies > 512 bytes Signed-off-by: Santhosh Manohar <santhosh@docker.com>
This commit is contained in:
parent
e9ec59b4f1
commit
cbb59adbd8
1 changed files with 1 additions and 0 deletions
|
@ -229,6 +229,7 @@ func (r *resolver) ServeDNS(w dns.ResponseWriter, query *dns.Msg) {
|
|||
|
||||
resp, _, err = c.Exchange(query, addr)
|
||||
if err == nil {
|
||||
resp.Compress = true
|
||||
break
|
||||
}
|
||||
log.Errorf("external resolution failed, %s", err)
|
||||
|
|
Loading…
Add table
Reference in a new issue