On Mon, 6 Feb 2017 19:50:10 +0100
François Patte <francois.patte(a)mi.parisdescartes.fr> wrote:
Bonjour,
I would like to know what is the process which automatically write the
file /etc/sysconfig/network-scripts/ifcfg-<name of a new essid>
whenever you connect your computer to a new wifi.
NetworkManager
Generaly, the connection is made via dhcp and we have the
instruction
PEERDNS=yes. I want to modify this ie. I want that the process write:
PEERDNS=no
and add these lines:
DNS1=xxx.yyy.....
DNS2=zzz.ttt....
(fixed dns addresses).
I want that my laptop will be able to use these dns addresses in spite
of the assigned dns adresses by the dhcp which it connects to.
In the file /etc/NetworkManager/NetworkManager.conf, in the [main]
section, put the line
dns=none
and then add the dns ip addresses you want to use to the file
/etc/resolv.conf
bare numbers, one per line.
For more info do
man NetworkManager.conf