Bug 2398 - rc.sysinit doesn't set domain unless NIS is present
rc.sysinit doesn't set domain unless NIS is present
Status: CLOSED NOTABUG
Product: Red Hat Raw Hide
Classification: Retired
Component: initscripts (Show other bugs)
1.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-04-28 13:35 EDT by Steingold, Sam
Modified: 2014-03-16 22:09 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-05-04 15:48:22 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Steingold, Sam 1999-04-28 13:35:00 EDT
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 14:00:59 EDT
why would you want to set the NIS domain name if you
aren't using NIS?
Comment 2 Steingold, Sam 1999-04-28 14:08:59 EDT
allright, make it dnsdomainname, not domainname.
Comment 3 Bill Nottingham 1999-04-28 17:43:59 EDT
You can't set the dnsdomainname. (see the man page...)

Note You need to log in before you can comment on or make changes to this bug.