Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
73
rated 0 times [  73] [ 0]  / answers: 1 / hits: 163780  / 3 Years ago, sat, august 7, 2021, 2:55:52

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 ?)


More From » dns

 Answers
4

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:


sudo vim /etc/NetworkManager/NetworkManager.conf

And add this to the [main] section:


dns=none
rc-manager=unmanaged

Save and exit.


[#20000] Saturday, August 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ongdiligenc

Total Points: 452
Total Questions: 111
Total Answers: 107

Location: Ukraine
Member since Sun, Dec 13, 2020
4 Years ago
;