Skip to content

How to disable systemd-resolved in Ubuntu for Adguard Home

测试有用 ubuntu server 22.04 LTS

systemd-resolved can cause issues with Kubernetes (not to mention the time spent troubleshooting various issues).


  • Disable the systemd-resolved service
sudo systemctl disable systemd-resolved
sudo systemctl stop systemd-resolved
  • Remove the remove the existing /etc/resolv.conf file, which is currently a symbolic link to /run/systemd/resolve/stub-resolv.conf
sudo rm /etc/resolv.conf
  • Create a new static resolv.conf
echo 'search' > /etc/resolv.conf
echo 'nameserver' >> /etc/resolv.conf
echo 'nameserver' >> /etc/resolv.conf

Comments are closed, but trackbacks and pingbacks are open.