after connecting to a server via vpn, my wifi icon becomes red and there is no connection.
I am using dns over tls with systemd resolved. other than that I have not made any other changes
This might be your problem.
How do you connect to this VPN? How does the /etc/resolv.conf
look like before and after?
Can you ping anything or is it just DNS that’s not working?