Merge pull request #887 from sanimej/dns

Loopback IP shouldn't be filtered from resolv.conf in host mode
This commit is contained in:
Madhu Venugopal 2016-01-20 17:50:55 -08:00
commit a02c73c352

View file

@ -869,6 +869,11 @@ func (sb *sandbox) updateDNS(ipv6Enabled bool) error {
hashFile = sb.config.resolvConfHashFile
)
// This is for the host mode networking
if sb.config.originResolvConfPath != "" {
return nil
}
if len(sb.config.dnsList) > 0 || len(sb.config.dnsSearchList) > 0 || len(sb.config.dnsOptionsList) > 0 {
return nil
}