View Single Post

   
  #5 (permalink)  
Old 02-19-2008, 11:33 AM
buck
 
Posts: n/a
Default Re: Stop dhcpcd from writing in resolv.conf

Alan Hicks <alan@lizella.netWORK> wrote in news:40a69439$1_2@127.0.0.1:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> In alt.os.linux.slackware, sebek dared to utter,
>> Any ideas?

>
> Remove the write permission on /etc/resolv.conf.


Naah, Alan. This is right:

edit /etc/rc.d/rc.inet1

in the dhcpcd line(s), put " -R " somewhere in that line

Mine looks like this:
/sbin/dhcpcd -G -I "MY:MA:CAD:RE:SS" -R\
-s the.ip.i.want -t 30 -d eth${1}

man dhcpcd

Reply With Quote