I do not want network manager to add DNS servers received from DHCP to my /etc/resolv.conf
.
When configuring from GUI/Connections/IPV4 and choose the method Automatic (address only) it still adds DNS servers received via DHCP.
Is it possible to do it per connection (specific ssid ?)
Best Answer
One way to stop Network Manager from adding dns-servers to
/etc/resolv.conf
file is to do this:First open the nm conf file
/etc/NetworkManager/NetworkManager.conf
:And add this to the
[main]
section:Save and exit.