NetworkManager Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 13: Line 13:
By default, NetworkManager will update /etc/resolv.conf to reflect the name servers provided by currently active connections.
By default, NetworkManager will update /etc/resolv.conf to reflect the name servers provided by currently active connections.


This behavior can be changed by setting the "dns" element.
This behavior can be changed by setting of the "dns" and "rc-manager" element.


In order to configure NetworkManager not to touch  /etc/resolv.conf, set the following in the "[main]" section of /etc/NetworkManager/NetworkManager.conf:
In order to configure NetworkManager not to touch  /etc/resolv.conf, '''shut down the NetworkManager''' and then set the following in the "[main]" section of /etc/NetworkManager/NetworkManager.conf:


<pre>
<pre>
[main]
[main]
...
...
Line 25: Line 24:
</pre>
</pre>


Once this is done, /etc/resolv.conf can be maintained manually as described here [[/etc/resolv.conf#Manual_resolv.conf_Configuration|Manual /etc/resolv.conf Configuration]].
Once this is done, /etc/resolv.conf can be maintained manually as described here:
 
=a=


=b=
{{Internal|/etc/resolv.conf#Manual_resolv.conf_Configuration|Manual /etc/resolv.conf Configuration}}

Latest revision as of 21:36, 22 May 2017

Internal

/etc/NetworkManager/NetworkManager.conf

man NetworkManager.conf

/etc/resolv.conf Processing Mode

By default, NetworkManager will update /etc/resolv.conf to reflect the name servers provided by currently active connections.

This behavior can be changed by setting of the "dns" and "rc-manager" element.

In order to configure NetworkManager not to touch /etc/resolv.conf, shut down the NetworkManager and then set the following in the "[main]" section of /etc/NetworkManager/NetworkManager.conf:

[main]
...
dns=none
rc-manager=unmanaged

Once this is done, /etc/resolv.conf can be maintained manually as described here:

Manual /etc/resolv.conf Configuration