NIS domainame not holding after reboot
Rick Stevens
rstevens at internap.com
Wed Jan 16 23:04:17 UTC 2008
On Wed, 2008-01-16 at 14:39 -0800, Waldher, Travis R wrote:
> > -----Original Message-----
> > From: Rick Stevens [mailto:rstevens at internap.com]
> > Sent: Wednesday, January 16, 2008 1:13 PM
> > To: Getting started with Red Hat Linux
> > Subject: Re: NIS domainame not holding after reboot
> >
> > >
> > > I reboot and I get (none) when I type in domainname. Even odder, if
> > > the machine changes NIS domains, it’s remembering the old domain.
> >
> > You have to bind to the NIS master of the new domain.
> >
> > > Has anyone seen this?
> >
> > The only time the NIS domain is set is if you have ypbind enabled (e.g.
> > "service ypbind on"). You can bury the "NISDOMAIN=whatever" in
> > /etc/sysconfig/network, /etc/sysconfig/ypbind or /etc/yp.conf.
> >
>
> Ok, this makes sense. I figured that even if ypbind wasn't enabled the nis domainname would still be set.
>
> A side question since I've seen this stated. Supposedly on a client /etc/sysconfig/network doesn't need the NISDOMAIN=<domainname> entry, just /etc/yp.conf is adequate.
>
> I haven't found that to be true, is it supposed to be true?
It should be. If NISDOMAIN isn't set in /etc/sysconfig/network or
/etc/sysconfig/ypbind, then the ypbind script looks for it by scanning
/etc/yp.conf for an uncommented line beginning with "domain" (it can be
any of the three "domain"-type lines). A client, by definition, has to
run ypbind.
Have a looksee at /etc/rc.d/init.d/ypbind for details.
----------------------------------------------------------------------
- Rick Stevens, Principal Engineer rstevens at internap.com -
- CDN Systems, Internap, Inc. http://www.internap.com -
- -
- Memory is the second thing to go, but I can't remember the first! -
----------------------------------------------------------------------
More information about the Redhat-install-list
mailing list