On 10/27/06, Michael Sullivan <[EMAIL PROTECTED]> wrote:
Is there a way that I can edit /etc/init.d/net.eth0 so that when it calls dhcpcd to get an IP address, it doesn't overwrite my domain name or my /etc/resolv.conf file? I looked at /etc/init.d/net.eth0, but could not find anyplace where it actually called dhcpcd...
The actual call to dhcpcd is in /lib/rcscripts/net/dhcpcd.sh. But you really don't want to edit that script. You should read /etc/conf.d/net.example. If you *really* want direct control over the dhcpcd options: ------- # For passing custom options to dhcpcd use something like the following. This # example reduces the timeout for retrieving an address from 60 seconds (the # default) to 10 seconds. #dhcpcd_eth0="-t 10" ------ But, probably what you really want is the generic "nodns" option: ------ # GENERIC DHCP OPTIONS # Set generic DHCP options like so #dhcp_eth0="release nodns nontp nonis nogateway nosendhost" # This tells the dhcp client to release it's lease when it stops, not to # overwrite dns, ntp and nis settings, not to set a default route and not to # send the current hostname to the dhcp server and when it starts. # You can use any combination of the above options - the default is not to # use any of them. ------ -Richard -- [email protected] mailing list

