Bug 2398

Summary: rc.sysinit doesn't set domain unless NIS is present
Product: [Retired] Red Hat Raw Hide Reporter: Steingold, Sam <sds>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-05-04 19:48:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steingold, Sam 1999-04-28 17:35:00 UTC
DOMAINNAME set in /etc/sysconfig/network is ignored in
/etc/rc.d/rc.sysinit.  The following patch fixes the
problem:

*** /etc/rc.d/rc.sysinit.old    Wed Apr 28 13:31:31 1999
--- /etc/rc.d/rc.sysinit        Wed Apr 28 13:32:46 1999
***************
*** 61,67 ****
  if [ -n "$NISDOMAIN" ]; then
      action "Setting NIS domain name $NISDOMAIN" domainname
$NISDOMAIN
  else
!     domainname ""
  fi

  if [ -f /fsckoptions ]; then
--- 61,67 ----
  if [ -n "$NISDOMAIN" ]; then
      action "Setting NIS domain name $NISDOMAIN" domainname
$NISDOMAIN
  else
!     action "Setting domain name $DOMAINNAME" domainname
$DOMAINNAME
  fi

  if [ -f /fsckoptions ]; then

Comment 1 Bill Nottingham 1999-04-28 18:00:59 UTC
why would you want to set the NIS domain name if you
aren't using NIS?

Comment 2 Steingold, Sam 1999-04-28 18:08:59 UTC
allright, make it dnsdomainname, not domainname.

Comment 3 Bill Nottingham 1999-04-28 21:43:59 UTC
You can't set the dnsdomainname. (see the man page...)