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:



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

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" | sudo tee -a /etc/resolv.conf

Hope this helped.