Re: why does resolv.conf change?
On Thu, 18 Mar 2010 22:09:40 +0100, Clive McBarton wrote:
> Camaleón wrote:
>>> My /etc/resolv.conf gets overwritten periodically. Any ideas why?
>>
>> Maybe because you are using a DHCP setup?
>
> Yes.
So you've got the response.
>> http://wiki.debian.org/
NetworkConfiguration#Definingthe.28DNS.29Nameservers
>
> That explains how the resolvconf program and network-manager can change
> /etc/resolv.conf. But I carefully deinstalled resolvconf and
> network-manager.
Uh? :-?
No, that explains how the "resolv.conf" can be changed by any "piece of
code" that needs to do so :-)
>> The C library and other resolver libraries look to /etc/resolv.conf for
>> a list of nameservers. In the simplest case, that is the file to edit
>> to set the list of name servers. *But note that various other programs
>> for dynamic configuration will be happy to overwrite your settings:*
>>
>> 1. The resolvconf program
>> 2. The network-manager daemon
>> 3. DHCP clients
>
> I assume that means dhcpd.
Correct.
> How do I stop it from changing resolv.conf?
Use a static network setup (that is, stop using DHCP). I do not use DHCP
and my "/etc/resolv.conf" never changes :-)
Now seriously, why do you care about "/etc/resolv.conf" being
automagically changed?
Greetings,
--
Camaleón
Reply to: