Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157093 - dhcpcd-3.x does no longer support the -D option
Summary: dhcpcd-3.x does no longer support the -D option
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-04 06:00 UTC by f5d8fd51ed1e804c9e8d0357e8614e0493b06e96
Modified: 2007-06-26 08:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2006-12-04 06:00:12 UTC
I used to set my systems domainname via the -D option of dhcpcd which no longer works cause this option has been removed. This causes things like ypbind now to fail cause my domainname is no longer set.

Is there a chance to get this option back - or what is the new gentoo way of retrieving my domainname via dhcp using dhcpcd ?
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-12-04 09:39:27 UTC
dhcpcd automatically sets the dns and nis domainname if given one by the dhcp server.
For dns it just puts it in /etc/resolv.conf, for nis it puts it in /etc/yp.conf and calls the setdomainname C function.

dhcpcd-1.x and dhcpcd-2.x incorrectly set the nis domainname to the dns domainname

Does /var/lib/dhcpcd/dhcpcd-eth0.info hold a value for NISDOMAIN and/or DNSDOMAIN?
Comment 2 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2006-12-04 23:36:23 UTC
among many other things /var/lib/dhcpcd/dhcpcd-eth0.info contains:

DNSDOMAIN='mydomain.priv'
NISDOMAIN='mydomain.priv'

/etc/yp.conf contains a line with my domain information:
domain mydomain.priv server 192.168.27.10

/etc/resolv.conf contains search and nameserver lines
search mydomain.priv
nameserver 192.168.27.10


but still I do get 

magratea #: domainname
(none)


Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-12-05 01:50:21 UTC
OK, dhcpcd-3.0.3 fixes the problem. Now in portage :)
Comment 4 f5d8fd51ed1e804c9e8d0357e8614e0493b06e96 2006-12-06 02:09:09 UTC
Thanks alot, I can confirm this problem being solved for me.
Comment 5 Eric Thibodeau 2007-06-14 16:43:22 UTC
The problem is back. This option is somewhat critical in my case since my machies boot via PXE and setting the domain name is done dynamically and is critical for proper ldap auth and connections (udev jamming and all).

Some info:
installed version: net-misc/dhcpcd-3.0.16-r1
result on calling dhcpcd -D:

CHROOT_test headless / # dhcpcd -D
dhcpcd: invalid option -- D
usage: dhcpcd [-adknpGHNRY] [-c script] [-h hostame] [-i classID]
              [-l leasetime] [-m metric] [-s ipaddress] [-t timeout]
              [-u userclass] [-F [none | ptr | both]] [-I clientID]
Comment 6 Roy Marples (RETIRED) gentoo-dev 2007-06-26 08:57:58 UTC
The -D option shouldn't be used in dhcpcd-3