mullvad / mullvadvpn-app

The Mullvad VPN client app for desktop and mobile
https://mullvad.net/
GNU General Public License v3.0
5.11k stars 339 forks source link

Unable to set system DNS server #5052

Closed MachineTrader closed 1 year ago

MachineTrader commented 1 year ago

Issue report

Operating system: Kernel 5.15.125-1-MANJARO Gnome 44.3 App version: 2023.4

Issue description

After working great for months suddenly one day it says: "Unable to set system DNS server" and then app goes in to "locking internet" mode.

Reproduce

This error can be reproduced by deleting the /etc/resolve.conf file

I know this has been mentioned before but yet three years later this problem can still occur.

Link to earlier discussion: https://github.com/mullvad/mullvadvpn-app/issues/1952#issuecomment-665274123

I know that Manjaro isn't officially supported, and there might be good reasons for that.

I myself was hesitant to run a layer between me and a stock Arch OS.

But for some reason this distro has ran butterfly smooth on all my computers with no issues for two years, and that is nothing but an extra ordinary achievement. I don't know what they do but it just works. All other distros from Arch, Endevaour to Mint to Fedora have played up at some point. Even though I like Endeavour, just because last time i tried install pure Arch i failed, and Fedora the best. They haven't been as rock solid. That's why I'm still on Manjaro even though I like the idea of pure Arch better. And I'm sure there are others in the same situation as me.

I spent a whole day trying to solve this by adjusting in the dns conf files and building Mullvad from source but nothing worked. I'm not that familiar with how DNS works on Linux though, needs to be said.

This simple command from the Mullvad DNS instructions webpage did the trick: sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

Hope this helps if anyone else is in the same situation.

But the issue that the app still can't solve this itself persists.

I published it here, with the correct search term, so that other can solve it in the mean time.

faern commented 1 year ago

I guess it's good that we have this issue to easier allow more people to find it if they run into this. But this is nothing we are going to fix. At least not right now. As you say, it's an unsupported distribution (we don't even officially support Arch, even less derivatives thereof).

stephannn commented 2 months ago

Also when the post is closed, my solution was following:

sudo chattr -a -i /etc/resolv.conf
sudo rm /etc/resolv.conf
sudo ln -s /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

Before I had NordVpn installed on my Ubuntu system.