When many of us at Netscape have installed RedHat 5.1 and
5.2, we have found that despite answering the install
question regarding our domainname with mcom.com, that the
domainname remains unset as verified by executing the
domainname command after a reboot. This of course causes
ypbind to fail and then the rest of NIS + NFS + autofs.
Here is the diff to /etc/rc.d/init.d/ypbind that resolves
the problem for our domain. Reading the value from your
global config file would be a better solution.
johnb@barfly zsh: diff ypbind ypbind~
< # Domainname must be set for ypbind to work,
< [ -z "`domainname`" ] && domainname mcom.com
We use the NISDOMAIN env variable in /etc/sysconfig/network to set the
NIS domain. If $NISDOMAIN is defined and not empty the
/etc/rc.d/rc.sysvinit will set the domainname correctly.
The installer only asks about the DNS domain name, not NIS domain
OK. But my /etc/sysconfig/network does define NISDOMAIN:
I don't know how that got set if not by the install. How else
can it be set?
In any event, to ask whether NIS and autofs should be enabled
in the install and then not set the NIS Domainname is a bug.
NIS/autofs doesn't work after a reboot. That's bad don't you think?