Skip to content

Instantly share code, notes, and snippets.

@mtask
Created August 19, 2017 09:38
Show Gist options
  • Select an option

  • Save mtask/d6d02a34b8d043bedfc07c5f3e6bfcad to your computer and use it in GitHub Desktop.

Select an option

Save mtask/d6d02a34b8d043bedfc07c5f3e6bfcad to your computer and use it in GitHub Desktop.
Disable local dns ubuntu
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
@maxxdiss
Copy link
Copy Markdown

maxxdiss commented Jul 5, 2021

This works! Thanks!

@kimboslice99
Copy link
Copy Markdown

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