networking - How does Windows decide which DNS Server to

When a VPN connectivity between client and VPN Server (PIX/ASA/VPN3K?Router) is established, logically they are sitting/located in the same network/LAN segment where the VPN Server resides. The metric value of 1 is set automatically as the client initially is only 1 hop away from the VPN Server. DNS Resolution via VPN Not Working on Windows 10 | Windows Jan 22, 2020 settings - Shrew Soft VPN Client: Route Metric - Stack

As I remember I had the same problem on Windows 8.1 and the first Windows 10 as well then I've found route-metric. My configuration pushes for VPN clients only NS servers from VPN network. No outside NS are set. With block-outside-dns blocks dns traffic except dns from interface with the lowest metric.

Routing All Traffic Through a VPN Gateway on Linux The VPN gateway is used only for routing traffic through specific hosts. If this happens, it’s probably because your VPN provider configured the default connection settings so that only certain traffic goes through the VPN. Destination Gateway Genmask Flags Metric Ref Use Iface default 192.168.1.1 0.0.0.0 UG 600 0 0 eth0 link-local * 255 VPN Availability Configuration Guide, Cisco IOS Release Nov 02, 2018

Aug 25, 2017

An explanation of the Automatic Metric feature for IPv4 routes