Skip to content

Instantly share code, notes, and snippets.

@kpma1985
Forked from zoilomora/README.md
Created August 17, 2022 13:45
Show Gist options
  • Save kpma1985/b2b56a54e379159d690d5fe5737b42d2 to your computer and use it in GitHub Desktop.
Save kpma1985/b2b56a54e379159d690d5fe5737b42d2 to your computer and use it in GitHub Desktop.

Revisions

  1. @zoilomora zoilomora revised this gist Mar 10, 2020. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -21,4 +21,3 @@

    ## 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
  2. @zoilomora zoilomora revised this gist Mar 10, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@

    - Then put the following line in the `[main]` section of your `/etc/NetworkManager/NetworkManager.conf`:

    dns=none
    dns=default

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

  3. @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