You are not logged in.

#1 2009-01-16 00:02:40

boshane
Member
Registered: 2008-11-13
Posts: 9

How to stop dhcpcd from writing resolv.conf?

As the subject says, how can I stop dhcpcd from writing resolv.conf?

Or, more specifically, how can I specify my own "search" line so it is always the same?

I've tried calling dhcpcd with "-C resolv.conf" but for some reason it doesn't work.

Thanks!

Offline

#2 2009-01-16 00:21:55

sisco311
Member
From: Romania
Registered: 2008-05-23
Posts: 112

Re: How to stop dhcpcd from writing resolv.conf?

?

put it into /etc/resolv.conf.head or /etc/resolv.conf.tail

?


don't drink unwashed fruit juice.
i never make predictions, especially about the future.

Offline

#3 2009-01-16 01:27:46

T-Punch
Member
From: Mumbai, India
Registered: 2009-01-10
Posts: 15

Re: How to stop dhcpcd from writing resolv.conf?

Here is what I've put in my /etc/conf.d/dhcpcd

DHCPCD_ARGS="-C resolv.conf -q"

Offline

#4 2009-01-17 21:19:48

Gruntz
Member
From: Haskovo, Bulgaria
Registered: 2007-08-31
Posts: 291

Re: How to stop dhcpcd from writing resolv.conf?

You can try the command 'chattr +i /etc/resolve.conf'. The '+i' option will prevent even root from erasing or changing the contents of a file. To reverse the file back to normal, you can use '-i'.

Offline

Board footer

Powered by FluxBB