openVPN Instance: How to get split-DNS to work?

Started by blacklistme, July 05, 2024, 12:58:20 PM

Previous topic - Next topic
July 05, 2024, 12:58:20 PM Last Edit: July 05, 2024, 01:03:55 PM by blacklistme
Hi Gang,

I have openVPN-Instance up and runnig on opnsense 24.1.9. The DNS-Server, which is configured in the Instance-Tab, is pushed to the windows-client (openVPN GUI) correctly. The client can resolve DNS-requests over this DNS-Server. Fine so far.

Windows is (always?) taking the first available DNS-Server. If the LAN adapter is placed before the virtual openVPN adapter in "ipconfig /all", Windows will take the DNS of the LAN adapter.

The Question: Is it possible to split DNS requests for specific domains? e.g. System DNS (-> #1 in nic list) is default DNS, but for test.com use the DNS-Server which is configured on virtual openVPN adapter.   

cheers
Robin