How to disable systemd-resolved. Problem to get resolve.conf updated with NetworkManger #ubuntu #networkmanager #linux #INVIDGruppen

When you running systemd-resolved you have entry in /etc/resolv.conf that points to nameserver When you troubleshoot sometimes you do not want this.

This is how I did it:

  1. Disable systemd-resolved
sudo systemctl disable systemd-resolved.service
sudo systemctl stop systemd-resolved

2. Edit network-manager settings files /etc/NetworkManager/NetworkManager.conf and dns=default

roger@xps13:~$ cat /etc/NetworkManager/NetworkManager.conf



3. Delete old resolve.conf file

rm /etc/resolv.conf

4. Reboot and test or try

sudo service network-manager restart


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Blog at

Up ↑

%d bloggers like this: