Yp and a simple question.
Rick Stevens
rstevens at vitalstream.com
Wed Oct 6 20:35:24 UTC 2004
Waldher, Travis R wrote:
> Ok.. I have what I hope is a good question.
>
> You can set the NISDOMAIN in /etc/sysconfig/network OR in /etc/yp.conf.
> You don't have to set it in both.
>
> Which one is the correct current way to do this?
/etc/sysconfig/network, since the ypbind rc.d script uses it. The
actual name is set via the "domainname" command, and
/etc/rc.d/init.d/ypbind contains:
. /etc/sysconfig/network (and "NISDOMAIN=whatever" should be in it)
-
-
-
DOMAINNAME=`domainname`
if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
if [ -n "$NISDOMAIN" ]; then
action $"Setting NIS domain name $NISDOMAIN: " \
domainname $NISDOMAIN
else
exit 1
fi
fi
>
> I also found that the only way ypserv was going to build properly, was
> to set the nisdomain in the network file. Is there another way?
Nope. That's it. Actually, older Solaris systems and such used to have
an "/etc/domain" file that contained the NIS domain name. One of their
startup scripts did a "domainname `cat /etc/domain`" command to set it.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- You know the old saying--any technology sufficiently advanced is -
- indistinguishable from a Perl script -
- --Programming Perl, 2nd Edition -
----------------------------------------------------------------------
More information about the Redhat-install-list
mailing list