Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 130639

Summary: baselayout: /etc/init.d/domainname script missing
Product: Gentoo Linux Reporter: Kesara Rathnayake <kesara>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: major CC: admin, sylgar
Priority: Highest    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 143988    

Description Kesara Rathnayake 2006-04-20 11:46:37 UTC
/etc/init.d/domainname script is missing in baselayout package.
version: baselayout-1.12.0_pre17
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-20 11:50:57 UTC
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>
Comment 2 SpanKY gentoo-dev 2006-04-25 16:25:53 UTC
*** Bug 131278 has been marked as a duplicate of this bug. ***
Comment 3 Kesara Rathnayake 2006-04-25 18:30:39 UTC
If you get any warnings saying domainname is missing while booting,
use this command to avoid such warnings...
rm -f /etc/runlevels/*/domainname
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-05-18 08:04:30 UTC
*** Bug 133694 has been marked as a duplicate of this bug. ***
Comment 5 Peter Ambroz 2008-06-02 09:12:05 UTC
/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.