|
@@ -270,16 +270,6 @@ func (rc *ResolvConf) TransformForIntNS(
|
|
|
}
|
|
|
rc.nameServers = newNSs
|
|
|
|
|
|
- // If there are no external nameservers, and the only nameserver left is the
|
|
|
- // internal resolver, use the defaults as ext nameservers.
|
|
|
- if len(rc.md.ExtNameServers) == 0 && len(rc.nameServers) == 1 {
|
|
|
- log.G(context.TODO()).Info("No non-localhost DNS nameservers are left in resolv.conf. Using default external servers")
|
|
|
- for _, addr := range defaultNSAddrs(ipv6) {
|
|
|
- rc.md.ExtNameServers = append(rc.md.ExtNameServers, ExtDNSEntry{Addr: addr})
|
|
|
- }
|
|
|
- rc.md.UsedDefaultNS = true
|
|
|
- }
|
|
|
-
|
|
|
// For each option required by the nameserver, add it if not already present. If
|
|
|
// the option is already present, don't override it. Apart from ndots - if the
|
|
|
// ndots value is invalid and an ndots option is required, replace the existing
|