Skip to content

Instantly share code, notes, and snippets.

@oxyno-zeta
Forked from aolwas/README.md
Created May 5, 2022 10:39
Show Gist options
  • Save oxyno-zeta/0242b5a08ab980401eeabbbfb41b99ea to your computer and use it in GitHub Desktop.
Save oxyno-zeta/0242b5a08ab980401eeabbbfb41b99ea to your computer and use it in GitHub Desktop.
How to disable systemd-resolved in Ubuntu

How to disable systemd-resolved in Ubuntu

Stages

  • Disable and stop the systemd-resolved service:

      sudo systemctl disable systemd-resolved.service
      sudo systemctl stop systemd-resolved
    
  • Then put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf:

      dns=default
      rc-manager=file
    
  • Delete the symlink /etc/resolv.conf

      rm /etc/resolv.conf
    
  • Restart network-manager

      sudo systemctl restart NetworkManager
    

Sources

@oxyno-zeta
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment