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

Bug 96979

Summary: sys-apps/baselayout-1.11.12-r4: /etc/init.d/domainname should call domainname for dnsdomainname
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Toralf Förster gentoo-dev 2005-06-24 12:57:48 UTC
What about:

n22 ~ # diff -u domainname /etc/init.d/domainname
--- domainname  2005-06-24 21:50:59.000000000 +0200
+++ /etc/init.d/domainname      2005-06-24 21:51:29.000000000 +0200
@@ -45,6 +45,7 @@

        if checkconfig_dns ; then
                ebegin "Setting DNS domainname to ${DNSDOMAIN}"
+               /bin/domainname "${DNSDOMAIN}"
                resolv=$(grep -v '^[[:space:]]*domain' /etc/resolv.conf)
                [[ ${OVERRIDE} == "1" ]] \
                        && resolv="${resolv}"$'\n'"domain ${DNSDOMAIN}" \

?

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2005-06-24 13:37:22 UTC
domainname sets the NIS/YP domainname hence the NISDOMAIN var