DNS not working on VPN

netconfig is using the information provided by wicked or NetworkManager. You sounded like you were using NetworkManager. Then check that after connecting it has the correct information.

In Network settings, you should be able to manually set the DNS servers for each connection instead of using the DNS servers provided by router. Could be worth looking into.

and this could be done editing /run/netconfig/resolv.conf or /etc/resolv.conf ?

Yes, I did that (add quad9 DNS servers in Networkd Manager then do a netconfig update -f), but it doesn’t change a thing.

I found this doc and I tried the “Method 1: Use NetworkManager applets” and as predicted, it worked for a while but the changes were flushed automatically later.

I wanted to add you need to edit /etc/NetworkManager/NetworkManager.conf as per the instructions (to add “[main] rc-manager=file” like they say but the problem is that there is no “NetworkManager.conf” file in /etc/NetworkManager/.
There’s a NetworkManager.conf.d directory but it’s empty…