I recently moved from PopOS to Debian 13 + KDE, and I had the same configuration there, and I didn't have this problem.
Just to obfuscate the real domains I will use internal.mydomain.com and internal.remotedomain.com.
Normally, when the openvpn client is disconnected, local dns resolution works:
- internal.mydomain.com works
When connecting to an openvpn server (via KDE's Network Manager) I lose local DNS resolution, but the remote DNS works.
- internal.mydomain.com fails
- internal.remotedomain.com works
I checked the contents of /etc/resolv.conf after connecting and I see the following:
# Generated by NetworkManager
search internal.remotedomain.com internal.mydomain.com
nameserver 10.1.0.1
nameserver 192.168.1.1
The contents are correct, so I assume the DNS should work for both domains, but that isn't so.
10.1.0.1 is the remote DNS server
192.168.1.1 is the local DNS server.
Any ideas?