Virus: In the new Linux NetworkManager ignores DNS and overwrites resolv.conf

By | November 17, 2017

In the new Linux, NetworkManager ignores DNS and rewrites resolv.conf what to do?

It turned out to be very difficult, many put bind9 or dnsmasq, they set up a long time

but the cunning NetworkManager takes and writes to resolv.conf for example nameserver 127.0.1.1 or 127.0.0.53 – where it takes them at all is not clear, it seems by random law because with one flash drive put Lubuntu Linux on one computer – vylazit 127.0.0.53 and on the other 127.0.1.1

The behavior of Linux is similar to a virus if the address was of course not 127 and yet any. A whole day was tormented with hapless programmers who have recently been trying to make from a hard and understandably customizable Linux – what kind of self-programming Windows!

It helped write in the section of the file /etc/NetworkManager/NetworkManager.conf

[main] plugins = ifupdown, keyfile
dns = none

then NetworkManager became even though to register in resolv.conf what we write in the interface settings via the desktop applet, although so, well Further dig did not work! http://sys-admin.org/virus-v-linuks-networkmanager-ignoriruet-dns-i-perezapisy-vaet-resolv-conf/