[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why does resolv.conf keep changing?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Oct 23, 2017 at 09:17:11AM +0100, Joe wrote:
> On Sun, 22 Oct 2017 22:12:03 -0400
> Roberto C. Sánchez <roberto@debian.org> wrote:

[...]

> > I did find a page on the Debian wiki [0] which recommends setting the
> > immutable attribute on /etc/resolv.conf.  However, that feels like an
> > ugly hack.
> > 
> 
> It most certainly is, and shouldn't be necessary in your case.

I've used that approach sometimes and regularly recommend it.

That said, my main intention is to *debug* the problem, i.e. to
provoke an error message in some log file or whatever, to learn which
process is (undesirably?) mutating some file. Most of the time this
leads to learning some config option to not do that mutation in the
first place (or to some understanding on why that mutation is a Good
Thing after all and to a better way of solving my real, underlying
problem).

Only in exceptional cases I had to "leave in" the immutable attribute
as a permanent "solution".

(as to the rest, yeah, resolvconf seems a worthy candidate).

Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlnttXEACgkQBcgs9XrR2kbeIwCeJ1IyTwgJjRt/URyUIrhhFfyp
+KwAn3HyMZ9UO1tGAaljQeD2zxTMU3p7
=JeQl
-----END PGP SIGNATURE-----


Reply to: