I am not network administrator but was a developer 15 years go. So bear with me if my networking understanding is rusty.
I have a Win 10 Pro client with local internet connection (home) and a VPN connection to office network. The home internet connection's DNS is set to google's DNS 8.8.8.8. The VPN connectino's DNS setting is pointing to a Windows Server 2019 w/ DNS service enabled (10.0.1.2). When both connections are connected, how does the local client determine with DNS to use when an new domain name is queried? I ran nslookup and have seen both DNS being used at different times. There must be a rule, right?
Am I correct that routing table doesn't come into play at this step? because routing table only deals with IP addresses, not domain names