View Single Post

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

On Sat, 15 May 2004 17:05:45 -0500, Alan Hicks wrote:

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


The writer of dhcpcd hardcoded the -R option for people who dont want to
have thier resolv.conf overwritten, so start dhcpcd with the -R option.

Slackware starts dhcpcd in /etc/rc.d/rc.init1 so change;

/sbin/dhcpcd -t 10 ${DHCP_HOSTNAME} -d eth0
to something like;
/sbin/dhcpcd -t -R 10 ${DHCP_HOSTNAME} -d eth0

--
If the Linux community is a bunch of thieves because they
try to imitate windows programs, then the Windows community
is built on organized crime.

Regards Richard
pa3gcu@zeelandnet.nl
http://people.zeelandnet.nl/pa3gcu/


Reply With Quote