Cannot resole local DNS on PC when VPN connected

I’ve just started with OPNsense after a history of my consumer pre-built routers.

I’m having an issue with local DNS on my PC when I connect to my work VPN (Forticlient)

When using PC without VPN I can ping and connect to all my local devices. OPNsense resolves these (confirmed via nslookup).

IP of OPNsense is listed as single DNS server in ipconfig /all.

But when I connect to work VPN I can’t resolve any local names.

I think this is because the Forticlient / work DNS entries jump above the OPNsense IP in the DNS list.

ie, OPNsense gets dumped to 3rd on the DNS list in ipconfig.

I’ve never had this problem with previous routers. So i’m wondering if i’m missing some sort of ordering button? or ‘try local DNS first’ option?

I’ve tried this with both Dnsmsaq DNS and Unbound. Both have the same behaviour.

Any help would be appreciated. Thank you.

That’s because your work VPN isn’t doing any split dns. Nothing your really can do since all your traffic is going though them when connected.

This is by design of the company you work for. They have configured the vpn to block all split tunnelling. So while the vpn is active, absolutely nothing on your local network is accessible. Common practice by many companies.