[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/resolv.conf keeps getting overwritten



on Sat, 04 Jan 2003 05:19:39PM -0500, Derrick 'dman' Hudson insinuated:
> On Sun, Jan 05, 2003 at 09:01:57AM +1100, David Gardner wrote:
> | Nori Heikkinen <nori@sccs.swarthmore.edu> wrote:
> | 
> | <snip>
> | > i don't changed anything as root between relapses, so i can't figure
> | > out what's causing this.  any ideas?
> 
> | If you're using dhclient, check out /etc/dhclient-script.  There's a
> | function make_resolv_conf() in there which overwrites /etc/resolv.conf
> | whenever there's a dhcp update.  You could probably just comment it out, or
> | change this routine to add your custom search information.  If you do
> | disable it though, remember that if your ISP changes your DNS settings, they
> | won't be reflected here. :)
> 
> A better solution is to edit /etc/dhclient.conf.  Use one of
>     append  search foo.example bar.example
>     prepend search foo.example bar.example
> depending on the effect you want.

cool, much better.  thanks,

learning as i go,

</nori>

-- 
    .~.      nori @ sccs.swarthmore.edu 
    /V\  http://www.sccs.swarthmore.edu/~nori/jnl/
   // \\          @ maenad.net
  /(   )\       www.maenad.net
   ^`~'^



Reply to: