On Thu, 22 Feb 2001, Gavin Hamill wrote: > > How to pass that flag when dhcpcd is called from /etc/network/interfaces? > > Ooh :/ That's a good question... Don't know, sorry.. the dhcpcd man page > doesn't seem to suggest that dhcpcd reads a global conf-file or anything > :(
You could do chattr +i /etc/resolv.conf, which will ensure not even root can change it anymore (except after doing chattr -i of course). Or you could look into /etc/dhcpc/config, which contains this: # Add options here, examples are: # OPTIONS='-h "foo"' set hostname (needed by some cablemodem providers) # OPTIONS='-l 12345' set leasetime OPTIONS='' The second option seems to be the most elegant. Untested solution BTW ;-) -- "Sometimes when I think you're the shallowest man I've ever met, you somehow manage to drain a little more out of the pool." - Elaine, to Jerry, in "Seinfeld - The Implant"