Created
August 19, 2017 09:38
-
-
Save mtask/d6d02a34b8d043bedfc07c5f3e6bfcad to your computer and use it in GitHub Desktop.
Disable local dns ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Source: https://askubuntu.com/questions/907246/how-to-disable-systemd-resolved-in-ubuntu | |
Disable the systemd-resolved service and stop it: | |
sudo systemctl disable systemd-resolved.service | |
sudo service systemd-resolved stop | |
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 |
No longer works on 22.10
breaks dns entirely
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This works! Thanks!