0

Why is netowrk manager resetting resolv.conf to 127.0.0.53

resolv.conf

# Generated by NetworkManager
nameserver 127.0.0.53

this causes internet to not work on my computer.

Ciasto piekarz
  • 313
  • 1
  • 8
  • 18

1 Answers1

1

One way to stop Network Manager from adding dns-servers to /etc/resolv.conf file is to do this. So first open the nm conf file /etc/NetworkManager/NetworkManager.conf:

sudo vim /etc/NetworkManager/NetworkManager.conf

And add this to the [main] section:

dns=none

Save and exit.

Source: network manager: how to stop nm updating /etc/resolv.conf

fedora
  • 57
  • 1
  • 10
  • oh so is it that pi hole running on my computer may be resetting it , because in its dns setting I have Upstream dns server set to itself. `192.168.1.18#53` – Ciasto piekarz Apr 05 '20 at 10:03
  • No, Pi Hole doesn't reset this to default value. Please try what I said and let me know if it helps. Thanks – fedora Apr 05 '20 at 11:43
  • having done this using pi hole ip I am not able to access internet with pihole host ip configure as dns on the device I use. – Ciasto piekarz Apr 11 '20 at 12:25
  • This solved my issue on Ubuntu 20.04, thanks. – Rocket Apr 26 '21 at 16:58