Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to set system DNS server #5052

Closed
MachineTrader opened this issue Aug 25, 2023 · 2 comments
Closed

Unable to set system DNS server #5052

MachineTrader opened this issue Aug 25, 2023 · 2 comments
Labels
Linux Issues related to Linux

Comments

@MachineTrader
Copy link

MachineTrader commented Aug 25, 2023

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.

@MachineTrader MachineTrader changed the title sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf Failed to set system DNS Aug 25, 2023
@MachineTrader MachineTrader changed the title Failed to set system DNS Unable to set system DNS server Aug 25, 2023
@faern faern added the Linux Issues related to Linux label Sep 4, 2023
@faern
Copy link
Member

faern commented Sep 4, 2023

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).

@faern faern closed this as completed Sep 4, 2023
@stephannn
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Linux Issues related to Linux
Projects
None yet
Development

No branches or pull requests

3 participants