Revert DNS settings after disconnection

When connecting, DNS settings are changed as configured in the server. Occasionally, it appears that this is not reverted to the expected, dynamic settings. Is this intentional? Do I need a scheduled task that resets the DNS settings on login if the VPN isn’t connected or something? Seems bizarre, given that I’ve used plenty of OpenVPN-based clients in the past and have never had this issue (that I’m aware of).

What operating system is it? For Linux run the commands below to get the DNS system configuration.

sudo bash -x << 'EOF'
set -x
cat /etc/resolv.conf
cat /etc/resolvconf.conf
cat /etc/resolv.conf.bak
ls -la /etc/resolv.conf
resolvectl status
resolvectl dns
systemctl status systemd-resolved
resolvconf -l
NetworkManager --print-config | grep rc-manager
EOF

Clients are all Windows 10/11.