Re: Why automatic tools can change /etc/resolv.conf?
>>>>> "Michele" == Michele Dalla Silvestra <email@example.com> writes:
Michele> But is correct that an application change /etc/resolv.conf
Michele> even if the administrator write it entirely by hand?
Both pppd and dhclient can receive information about available DNS
servers, and they will try to make that available to other
applications (by adapting /etc/resolv.conf).
Pppd is even nice enough to revert to the original file after
Michele> How can I prevent it?
For pppd, the answer has already been mentioned. If you want to
prevent dhclient from changing /etc/resolv.conf, create a file
/etc/dhclient-enter-hooks with the following contents (it should be
# redefine the function which changes resolv.conf to do nothing
G. ``Iggy'' Geens - ICQ: #64109250
Home: <firstname.lastname@example.org> - Work: <email@example.com>
`I want quality, not quantity. But I want lots of it!'