1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #937 from sanimej/compress

Set the compress flag for the responses from external DNS servers
This commit is contained in:
Madhu Venugopal 2016-02-09 20:42:48 -08:00
commit edaf344a54

View file

@ -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)