Wifi or Dns not working

Wifi or Dns not working after using VPN in Ubuntu

Open the following file:

sudo vi /etc/resolv.conf

Make sure the content of the file is as following:

nameserver 127.0.0.53

nameserver 8.8.8.8

We have added an additional enty nameserver 8.8.8.8 here apart from the regular one nameserver 127.0.0.53.

You dont have to reboot after this change. It will take after within seconds.

You can do this change using the following command alone:

echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolv.conf

Hope this helped.