When you running systemd-resolved you have entry in /etc/resolv.conf that points to nameserver 127.0.0.53. When you troubleshoot sometimes you do not want this.
This is how I did it:
- 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
[main]
plugins=ifupdown,keyfile
dns=default
[ifupdown]
managed=false
[device]
wifi.scan-rand-mac-address=no
3. Delete old resolve.conf file
rm /etc/resolv.conf
4. Reboot and test or try
sudo service network-manager restart
Leave a Reply