public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Editing /etc/init.d/net.eth0 to pass options to dhcpcd
@ 2006-10-27 18:40 Michael Sullivan
  2006-10-27 18:51 ` Richard Fish
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Sullivan @ 2006-10-27 18:40 UTC (permalink / raw
  To: gentoo-user

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...

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] Editing /etc/init.d/net.eth0 to pass options to dhcpcd
  2006-10-27 18:40 [gentoo-user] Editing /etc/init.d/net.eth0 to pass options to dhcpcd Michael Sullivan
@ 2006-10-27 18:51 ` Richard Fish
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Fish @ 2006-10-27 18:51 UTC (permalink / raw
  To: gentoo-user

On 10/27/06, Michael Sullivan <michael@espersunited.com> 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
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-27 18:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-27 18:40 [gentoo-user] Editing /etc/init.d/net.eth0 to pass options to dhcpcd Michael Sullivan
2006-10-27 18:51 ` Richard Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox