>>>>> "Michele" == Michele Dalla Silvestra <[EMAIL PROTECTED]> 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
disconnecting.

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
executable):

# redefine the function which changes resolv.conf to do nothing
make_resolv_conf() {}

-- 
G. ``Iggy'' Geens - ICQ: #64109250
Home: <[EMAIL PROTECTED]> - Work: <[EMAIL PROTECTED]>
WWW: http://users.pandora.be/guy.geens/
`I want quality, not quantity. But I want lots of it!'

Reply via email to