I recently installed Ubuntu 18.04. I set up a VPN through the standard Settings->Network GUI. I can connect to the VPN with no problems, but when I disconnect the VPN I cannot access the internet through my web browser. I can, however, ping an internet address from a shell window.
My /etc/resolv.conf file is a symlink to /run/systemd/resolve/stub-resolv.conf.
Before I connect to the VPN, the permissions/ownership are as follows:
-rw-r--r-- 1 systemd-resolve systemd-resolve 701 Jun 20 20:28 /run/systemd/resolve/stub-resolv.conf
While I am connected to the VPN these permissions stay the same, but when I disconnect, the read permissions are dropped and the ownership changes to
root:root, like this:
-rw------- 1 root root 701 Jun 20 20:31 /run/systemd/resolve/stub-resolv.conf
It seems that because of this, my web browser cannot read the resolv.conf file and thus does not know what nameserver to use
chmod a+r this file, I can access the internet fine, even though the ownership is still
Does anyone have any idea what is happening here and how it could be fixed without manually changing permissions of the resolv file every time I disconnect the VPN?