Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96979 - sys-apps/baselayout-1.11.12-r4: /etc/init.d/domainname should call domainname for dnsdomainname
Summary: sys-apps/baselayout-1.11.12-r4: /etc/init.d/domainname should call domainname...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-24 12:57 UTC by Toralf Förster
Modified: 2005-06-24 13:37 UTC (History)
0 users

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 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