jotyGill / openpyn-nordvpn

Easily connect to and switch between, OpenVPN servers hosted by NordVPN on Linux (+patch leakes)
GNU General Public License v3.0
628 stars 114 forks source link

Ending the connection should restore DNS servers #153

Open mikailtunc opened 6 years ago

mikailtunc commented 6 years ago

Hello! Apologies if I've missed anything obvious but terminating the connection (CTRL+C or otherwise) should restore the default/previous config.

I find that after terminating the connection, the NordVPN servers remain in the /etc/resolvers.conf file which means DNS resolution fails on my network.

Work around for anyone running into this issue: manually change the /etc/resolvers.conf or reboot.

ghost commented 6 years ago

sudo chattr -i /etc/resolv.conf after fix it

cinatic commented 3 years ago

using a dns server in the local network will only work when the network is white listed in nordvpn, however i think this will cause a DNS leak.

so chattr -i /etc/resolv.conf is not really an option, please correct me if i am wrong