JAGDEEP BISHT
JAGDEEP BISHT's Blog

JAGDEEP BISHT's Blog

Wifi or Dns not working after using VPN in Ubuntu

Photo by Misha Feshchak on Unsplash

Wifi or Dns not working after using VPN in Ubuntu

JAGDEEP BISHT's photo
JAGDEEP BISHT
·Jan 6, 2022·

1 min read

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.

 
Share this