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

Re: why does resolv.conf change?



On Fri, Mar 19, 2010 at 04:08:20AM +0100, Clive McBarton wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Ron Johnson wrote:
> > You must have missed the BIG BOLD LETTERS that tell you not to write
> > into resolv.conf by hand.
> > 
> > $ cat /etc/resolv.conf
> > # Dynamic resolv.conf(5) file for glibc resolver(3) generated by
> > resolvconf(8)
> > #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
> > nameserver xx.yy.zz.aa
> > nameserver xx.yy.zz.bb
> > search snagglefrob
> 
> I certainly noticed that comment. Had there also been a description
> which file to edit instead, it would even have been a helpful comment.
> But there hasn't, so it isn't helpful.
> 
> Also the comment stated "generated by resolvconf", indicating that
> resolvconf was the program that changed it. But as I said it still
> happened to me after deinstalling resolvconf.

Try this as root:   grep -R /etc/resolv.conf /etc/*

or this: 
for d in $( echo $PATH | sed 's/:/ /g' ); 
    do grep /etc/resolv.conf $d/*; done


Mike
-- 
Satisfied user of Linux since 1997.
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org


Reply to: