Skip to content

Instantly share code, notes, and snippets.

@XCage15
Forked from zoilomora/README.md
Created January 1, 2020 07:35
Show Gist options
  • Save XCage15/25368632a98c9fc0ebf8af34d26d77bc to your computer and use it in GitHub Desktop.
Save XCage15/25368632a98c9fc0ebf8af34d26d77bc to your computer and use it in GitHub Desktop.

Revisions

  1. @zoilomora zoilomora created this gist Jun 13, 2019.
    24 changes: 24 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    # 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=none

    - Delete the symlink `/etc/resolv.conf`

    rm /etc/resolv.conf

    - Restart network-manager

    sudo service network-manager restart

    ## Sources
    - https://askubuntu.com/questions/907246/how-to-disable-systemd-resolved-in-ubuntu
    - https://askubuntu.com/questions/623940/network-manager-how-to-stop-nm-updating-etc-resolv-conf