NIS Slave q's

Darin Perusich Darin.Perusich at cognigencorp.com
Thu Sep 13 11:33:02 EDT 2001


i know on sun machines your NIS+ master must be listed in /etc/hosts on
all nis clients, when you run the nisclient script to initialize a
client it asks for the ip of the master. 

one reason for it is if you name server goes down the system will be
able to talk to the NIS server. on most linux systems the yp subsystems
uses broadcast to find out the nis servers. 

don't forget to check /etc/nsswitch.conf, on sun machines they like to
default everything to nisplus before looking at local files. 

Robert Dege wrote:
> 
> I figured out the problem... thanks for the reply though.  The thing is
> that the master server MUST be listed in the /etc/hosts file.  Even if you
> can see it via DNS, ypinit will crash unless this is set.  Must be minor
> (or new feature), since they failed to explicity mention this in the HOWTO.
> 
> -Rob
> 
> > I think you might have to add the server to /var/yp/ypservers and rebuild the
> > maps before a server is allowed to connect.  I don't remember if the ypservers
> > map is rebuilt as part of the Makefile or not.
> >
> > Hope this helps...
> >
> > Cheers!
> > Bob
> >
> > --- Robert Dege <rdege at cse.Buffalo.EDU> wrote:
> > >
> > >
> > > I'm trying to setup a master/slave NIS.  I was able to setup a master NIS
> > > slave with no problem....  it works beautifully.
> > >
> > > But for some reason, when I try to make an NIS slave machine, I keep on
> > > getting the following error:
> > >
> > > (main is the name of my nis master server)
> > >
> > > # ypinit -s main
> > > Can't enumerate maps from main.  Please check that it is running.
> > >
> > >
> > > I can do a ypwhich & get main.  I can even do ypwhich -m & get all the
> > > available maps.  Anyobdy have some advise?  BTW, this is on RedHat 6.2,
> > > Alpha.  I'm using the latest sources available at ftp.kernel.org (ypserv,
> > > yp-tool, and ypbind).
> > >
> > >
> > > Dege
> > >
> > > Inside some of us is a thin person struggling to get out, but
> > > they can usually be sedated with a few pieces of chocolate cake.
> > >
> >
> >
> > =====
> > Bob Meyer
> > Knightwing Communications, Inc.
> > 36 Cayuga Blvd
> > Depew, NY 14043
> > Phone: 716-308-8931 or 716-681-0076
> > Meyer_RM at Yahoo.com
> >
> > __________________________________________________
> > Terrorist Attacks on U.S. - How can you help?
> > Donate cash, emergency relief information
> > http://dailynews.yahoo.com/fc/US/Emergency_Information/
> >
> 
> Dege
> 
> Inside some of us is a thin person struggling to get out, but
> they can usually be sedated with a few pieces of chocolate cake.

-- 
Darin Perusich
Unix Systems Administrator
Cognigen Corp.
darinper at cognigencorp.com



More information about the nflug mailing list