RE: why does resolv.conf change?



-----Original Message-----
From: Sjoerd Hardeman [mailto:sjoerd@xxxxxxxxxxxxxxxxxxxxx]
Sent: Saturday, 20 March, 2010 03:47
To: debian-user@xxxxxxxxxxxxxxxx
Subject: Re: why does resolv.conf change?

Clive McBarton schreef:
To make my original question more precise: I want the stuff
I write into
resolv.conf to persist, but it does not have to be in that file. I'm
happy to write things elsewhere as long as *some place*
makes my changes
persistent.


Yet, relying on the immutability of /etc/resolv/conf is like
relying on
the persistence of files on /tmp: just DON'T!


2nd note that my suggestion to make /etc/resolv.conf immutable was not to keep his changes, but to cause the application making the changes to complain in the event log. Then the OP could fix or configure the offending application.

The OP said that he did not know which application that was -- causing a failure is a simple way to identify these things. ("FOO unable to write to /etc/resolv.conf" in syslog is a good clue as to the culprit.)

Cheers,

James

--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: 4A09477D575C2C4B86497161427DD94C149F7885FE@city-exchange07">http://lists.debian.org/4A09477D575C2C4B86497161427DD94C149F7885FE@city-exchange07



Relevant Pages

  • Re: "Error exit delayed from previous errors"
    ... Google shows a number of references to this problem but none seems ... I don't much like relying on files that have been generated with this ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: 2.6.5-mc2
    ... > Ugh. ... relying on magical promotions: ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: firewire, iPod and Linux
    ... Emma Jane Hogbin wrote: ... what about sda3? ... This is what works for me (that's without relying on ... To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org ...
    (Debian-User)
  • Re: A way to recover deleted files (just contents) from USF2
    ... Go ahead and set this up on your system and start relying upon it. ... Then help a friend on his system and wipe out all his files because ... To unsubscribe, ...
    (freebsd-current)