resolv.conf overwrite

From: Lute Mullenix (lute_at_vfemail.net)
Date: 02/26/05


Date: Sat, 26 Feb 2005 11:49:52 -0600

I have Debian Sarge installed on this machine and dhclient keeps
overwriting resolv.conf with the wrong nameserver quad.dot addresses. I
think it's an issue with the built in server on my DSL modem, but not a
problem if I could keep resolv.conf from being re-written.

I have the same problem with FreeBSD but by using chflags tool the file
can not be overwritten and so no more problem, is there some way of doing
this with Debian? I have tried to remove all write permissions on the
file, and a couple things in the dhclient.conf file but nothing has worked
so far.

Lute



Relevant Pages

  • /etc/dhclient.conf syntax?
    ... dhclient keeps overwriting it with data from my ISP's dhcp server. ... nameserver www.xxx.yyy.zzz ...
    (freebsd-questions)
  • Re: resolv.conf overwrite
    ... In comp.os.linux.setup Lute Mullenix: ... > I have Debian Sarge installed on this machine and dhclient keeps ... > overwriting resolv.conf with the wrong nameserver quad.dot addresses. ...
    (comp.os.linux.setup)
  • Re: resolv.conf overwrite
    ... >overwriting resolv.conf with the wrong nameserver quad.dot addresses. ... >think it's an issue with the built in server on my DSL modem, ... Why not tak it up with your ISP. ...
    (comp.os.linux.setup)
  • Re: dhclient trashes my resolv.conf
    ... If dhclient ... doesn't make it possible to prevent overwriting of resolv.conf by means ... You cannot have rc.conf knobs for every option of every daemon in the base ... that's what the daemons config files are for. ...
    (freebsd-current)
  • resolv.conf and dhclient
    ... What is the best approach to keep dhclient from overwriting /etc/resolv.conf every time it gets a new lease on an IP address? ... This has been a frustrating search as Google has turned up next to nothing on the issue other than a hack into a script file which should be overwritten when world is rebuilt. ...
    (freebsd-stable)