telepresenceio / telepresence

Local development against a remote Kubernetes or OpenShift cluster
https://www.telepresence.io
Other
6.53k stars 513 forks source link

Introduce DNS fallback on Windows. #3629

Closed thallgren closed 3 months ago

thallgren commented 3 months ago

Telepresence belongs to a virtual network device with excellent network performance, and is therefore often rated with a low metric and placed first in the list of DNS servers.

Utilities using nslookup or node.resolveXXX calls fail when Telepresence is connected, because those methods will use the first resolver in the list and then give up when it fails.

This commit introduces a network.defaultDNSWithFallback option on Windows. It will cause the DNS-resolver to fall back to the resolver that was first in the list prior to when Telepresence establishes a connection. The option is default true since it is believed to give the best experience but can be set to false to get the old behavior.