I discovered this thread as I've been having this exact issue. local DNS works and I can nslookup hostnames on my LAN until a VPN client client is enabled - in my cast wireguard client.
I see this was supposedly fixed a year ago on 4.0. I'm on 4.7.0 a year later and still have this issue.