On Thu, Aug 01, 2019 at 07:58:56PM +0200, Pascal Hambourg wrote:
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.
It's the most inefficient only because of bug #860928, which means you
need to add a cron job to clean up all the stray temp files that get
left behind.