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 ?
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?
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)
OK, dhcpcd-3.0.3 fixes the problem. Now in portage :)
Thanks alot, I can confirm this problem being solved for me.
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]
The -D option shouldn't be used in dhcpcd-3