/etc/init.d/domainname script is missing in baselayout package. version: baselayout-1.12.0_pre17
This is NOT a bug. It's even documented in baselayout's ewarn... <snip> if [[ -e "${ROOT}"/etc/init.d/domainname ]] ; then rm -f "${ROOT}"/etc/init.d/domainname rm -f "${ROOT}"/etc/runlevels/*/domainname ewarn "The domainname init script has been removed in this version." ewarn "Consult ${ROOT}/etc/conf.d/net.example for details about how" ewarn "to apply dns/nis information to the loopback interface." fi </snip>
*** Bug 131278 has been marked as a duplicate of this bug. ***
If you get any warnings saying domainname is missing while booting, use this command to avoid such warnings... rm -f /etc/runlevels/*/domainname
*** Bug 133694 has been marked as a duplicate of this bug. ***
/etc/conf.net is not a full replacement for the /etc/init.d/domainname script. there is no way in gentoo to setup the domainname through provided config files (in fact, to call the domainname binary / call the setdomainname() function). When you set it up through /etc/conf.d/net, it is just written into resolv.conf. Thus applications like postfix, which call the gethostname() and getdomainname() are still getting "(none)" as the domain. The solution is to include line "domainname <my domain>" into /etc/conf.d/local.start, but the domainname rc script would have been a cleaner solution.