Le 01/08/2019 à 19:58, Pascal Hambourg a écrit :
Le 01/08/2019 à 18:18, David Wright a écrit :
I think that a lot of people install resolvconf (deliberately or
incidentally) without really understanding what it's for or what
it does. Then, because most people naturally check the contents of
/etc/resolv.conf, they indulge in all sorts of cargo-cult behaviour
to pummel it into submission; the most extreme I've seen being
editing followed by chattr +i.
AFAIK it is also the most inefficient : upon installation, resolvconf
replaces the regular file /etc/resolv.conf with a symlink pointing to a
volatile temporary file in /run (tmpfs), so the immutable attribute has
no effect if set on the symlink and will be reset at the next boot if
set on the target file in /run.
Thinking twice and testing, it appears that you cannot even set file
attributes in tmpfs nor on a symlink.