You are not logged in.

#1 2019-04-27 08:35:43

Dynnasty
Member
Registered: 2019-04-27
Posts: 6

Dead DNS after using NordVPN

Hi,

I installed nordvpn on my archlinux and now, when i'm not connected to the vpn I can't resolve any dns hmm
For example, when I'm not connected to vpn I can ping 8.8.8.8 but not google.com. But when I'm connected to nordvpn all is ok.

Thanks smile

Offline

#2 2019-04-27 09:14:08

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Dead DNS after using NordVPN

There is no NordVPN package in the Arch repos.

Look at whatever you installed and see what files were written/overwritten.



Moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2019-04-27 09:17:34

Dynnasty
Member
Registered: 2019-04-27
Posts: 6

Re: Dead DNS after using NordVPN

I downloaded NordVPN from AUR (pakku)

Last edited by Dynnasty (2019-04-27 09:18:01)

Offline

#4 2019-04-27 09:34:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Dead DNS after using NordVPN

Well, read the PKGBUILD and see what it did.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-04-29 10:14:25

Dynnasty
Member
Registered: 2019-04-27
Posts: 6

Re: Dead DNS after using NordVPN

Thank you for answer smile

The package build doesn't edit anything about previous network files :

# Maintainer: metiis <aur at metiis dot com>
# Maintainer: bubuntux
# Maintainer: Martoko <mbastholm at gmail dot com>

pkgname=nordvpn-bin
pkgver=3.0.0_4
pkgrel=1
pkgdesc="NordVPN CLI tool for Linux"
arch=('x86_64')
url="https://nordvpn.com/download/linux/"
license=('custom')
depends=('net-tools' 'libxslt' 'iptables' 'procps' 'iproute2')
provides=('nordvpn')
conflicts=('openvpn-nordvpn')
install=nordvpn-bin.install
source=("https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_${pkgver//_/-}_amd64.deb")
sha256sums=('a4a9602a9ecc1b29eb4ef9667993bd68999f42fc1962588951845a797d31ecfa')

package() {
    bsdtar -O -xf "nordvpn_${pkgver//_/-}_amd64.deb" data.tar.xz | bsdtar -C "${pkgdir}" -xJf -

    mv "${pkgdir}/usr/sbin/nordvpnsd" "${pkgdir}/usr/bin"
    mv "${pkgdir}/usr/sbin/nordvpnud" "${pkgdir}/usr/bin"
    rm -r "${pkgdir}/usr/sbin"
}

Last edited by Dynnasty (2019-04-29 10:14:40)

Offline

#6 2019-04-29 10:44:40

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: Dead DNS after using NordVPN

What manages your resolv.conf usually? NordVPN presumably manages it while you're connected to it, but when you disconnect, I suspect it either returns the file to the state it was in before you connected, or else it leaves it configured to use the NordVPN nameservers (which you no longer have access to).


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2019-04-29 11:17:26

Dynnasty
Member
Registered: 2019-04-27
Posts: 6

Re: Dead DNS after using NordVPN

My resolv.conf is re-generated whenever I connect or disconnect from NordVPN, when I'm disconnected it generates a resolv.conf that I think would work but only on the network where I originally installed NordVPN meaning that I don't have the right "search" and "nameservers" for the network I'm currently connected to...

The resolv.conf I get when I disconect from NordVpn :

# Generated by NetworkManager
search int.ionis-it.com
nameserver 163.5.42.40
nameserver 163.5.42.41

The resolv.conf I think I sould get :

# Generated by NetworkManager
search lan
nameserver 192.168.1.254

Offline

#8 2019-04-30 21:37:21

Dynnasty
Member
Registered: 2019-04-27
Posts: 6

Re: Dead DNS after using NordVPN

Nobody have an idea for solve this problem ? hmm

Offline

#9 2019-04-30 22:47:33

zzzardoz
Member
Registered: 2017-12-30
Posts: 23

Re: Dead DNS after using NordVPN

Define your default gateway/nameserver in /etc/resolvconf.conf and restart NetworkManager service. This should do the trick.

/etc/resolvconf.conf
------------------------------
name_servers=192.168.1.254

Offline

#10 2019-04-30 23:05:16

Dynnasty
Member
Registered: 2019-04-27
Posts: 6

Re: Dead DNS after using NordVPN

No it's same, resolve.conf still this one (it's my school config so at my school all is OK):

# Generated by NetworkManager
search int.ionis-it.com
nameserver 163.5.42.40
nameserver 163.5.42.41

Offline

#11 2019-04-30 23:19:08

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: Dead DNS after using NordVPN

Dynnasty wrote:

Nobody have an idea for solve this problem ? hmm

Please don't do that.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#12 2019-05-03 08:56:55

dodosoft
Member
Registered: 2011-09-11
Posts: 13

Re: Dead DNS after using NordVPN

I am experiencing the same problem.
It seems that NordVPN is setting /etc/resolv.conf as immutable.

This can be checked with

lsattr /etc/resolv.conf

If this is the case, you can make the file mutable with

chattr -i /etc/resolv.conf

Offline

#13 2020-01-17 08:27:33

Ataraxy
Member
Registered: 2016-11-21
Posts: 10

Re: Dead DNS after using NordVPN

The issue is caused by the NordVPN Kill Switch.

Restarting nordvpnd resolves the issue.

I wrote a systemd unit file to automate it all:

Network connectivity lost when using NordVPN Kill Switch

Offline

#14 2023-05-16 11:23:49

dreieck
Member
Registered: 2012-10-08
Posts: 56

Re: Dead DNS after using NordVPN

Ataraxy wrote:

The issue is caused by the NordVPN Kill Switch.
Restarting nordvpnd resolves the issue.

Thanks, this helped me a lot. I just had this mentioned issue as well, but just now for the fitst time although I use NordVPN for quite some time.

Seems something did make NordVPN hickup? Restarting nordvpnd did help to make NordVPN not anymore interfereinv with /etc/resolv.conf when I am not connected to NordVPN.

Offline

Board footer

Powered by FluxBB