Skip to content

Instantly share code, notes, and snippets.

@Terkea
Created October 2, 2020 23:46
Show Gist options
  • Save Terkea/d751c5223d0e00d11b7e69d2a82f0269 to your computer and use it in GitHub Desktop.
Save Terkea/d751c5223d0e00d11b7e69d2a82f0269 to your computer and use it in GitHub Desktop.
disable dns resolve
Disable and stop the service
sudo systemctl disable systemd-resolved.service
sudo systemctl stop systemd-resolved
Then put the following line in the [main] section of your
/etc/NetworkManager/NetworkManager.conf
dns=default
Delete the symlink /etc/resolv.conf
rm /etc/resolv.conf
Restart network-manager
sudo service network-manager restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment