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

Bug 100736

Summary: baselayout-1.11.13 does not set domainname correctly
Product: Gentoo Linux Reporter: Richard Scott <gentoo.bugs>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Richard Scott 2005-07-29 10:57:54 UTC
I have noticed that in /etc/init.d/domainname it does not actually set 
domainname and sets domainname when setting nisdomainname.

Reproducible: Always
Steps to Reproduce:
1. emerge baselayout-1.11.13
2. edit /etc/conf.d/domainname
3. /etc/init.d/domainname restart
4. compare the output from `domainname -f` and `domainname`
Actual Results:  
the command domainname ${DNSDOMAIN} is not executed and if NISDOMAIN is set 
then domainname ${NISDOMAIN} is executed by misteake

Expected Results:  
set domainname to DNSDOMAIN and nisdomainname to NISDOMAIN

See: http://forums.gentoo.org/viewtopic-p-2611065.html#2611065 for the fix.
Comment 1 SpanKY gentoo-dev 2005-07-29 12:32:52 UTC
domainname doesnt do what you think it does ... review `man domainname`

the current behavior of the domainname script (while not completely intuitive at
first glance) is correct