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

stop and deactivate do not restore previous dns settings #883

Open
MarkWieczorek opened this issue Nov 9, 2023 · 3 comments
Open

stop and deactivate do not restore previous dns settings #883

MarkWieczorek opened this issue Nov 9, 2023 · 3 comments
Labels
🐞 bug Something isn't working

Comments

@MarkWieczorek
Copy link

Context

  • CLI Version: 1.41.0
  • Platform: Fedora Linux 39

I would like to use nextdns on a laptop, but only when I am not on my home network. Based on the instructions, I thought that I would be able to easily activate/deactivate nextdns by using either

nextdns start
nextdns stop

or

nextdns activate
nextdns deactivate

However, when using the "stop" command, the dns settings are not restored, and simple commands like "ping" no longer work. The "deactivate" command, on the other hand, seems to keep the nextdns resolver in place (though I see that it does change the /etc/resolv.conf file).

So, either (1) there is a bug in the start/stop script, or (2) after the stopping nextdns, the user needs to do something else (like restart a service?). If it is the second, the documentation should be updated to reflect this.

@MarkWieczorek MarkWieczorek added the 🐞 bug Something isn't working label Nov 9, 2023
@lavendercolor
Copy link

lavendercolor commented Nov 9, 2023

I'm facing the same issue on my laptop. Ubuntu 23:10, NextDNS CLI 1.41.0.

@MarkWieczorek
Copy link
Author

My solution is to run

nextdns deactivate
sudo systemctl restart systemd-resolved.service

in order to get back the original settings. There should be a more elegant way of doing this. At a minimum, after running nextdns activate it should tell the user that they need to restart the service and provide the command.

@sergeevabc
Copy link

I'm facing a similar issue on Windows 7 x64. After executing the nextdns deactivate, OS does not communicate with my native resolver so even the ping does not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants