Hello 71776297,
To control DNS traffic so that requests for local domains go through the VPN while requests for global domains go through your regular internet connection, you can configure what is called Split DNS. This will allow you to define different DNS resolution settings based on the domain being accessed.
Steps in short:
- You need to first identify and separate Local and Global Domains, with a list of domains to be accessed through local DNS and other for external (public) DNS.
- Configure both a local DNS and external DNS: For local, you will need to set up a DNS server in your network or domain, that your clients will use as primary source. Then an external DNS as a secondary source (like OpenDNS) for public domains.
- Set up your VPN client to use the local DNS as a primary source when users are connected.
- You can also edit the HOSTS file in Windows. This text-format file (located at: C:\Windows\System32\drivers\etc) will allow you to manually force Domain/IP relations, and can be deployed using GPO, such as in Logon Scripts.
Very recommended to read the next full article on Split DNS using GPO, and it will cover all the theory beyond the deployment: https://learn.microsoft.com/en-us/windows-server/networking/dns/deploy/split-brain-dns-deployment
--If the reply is helpful, please Upvote and Accept as answer--