User Tools

Site Tools


ubuntu:disablednscacheubuntu

Disable DNS Caching on 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:

...
[main]
dns=default
...

Delete the symlink /etc/resolv.conf

rm /etc/resolv.conf

Restart network-manager

sudo service network-manager restart
ubuntu/disablednscacheubuntu.txt · Last modified: 2018/04/27 14:48 by tschulz