Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Dec 1999 10:54:21 -0800 (PST)
From:      "Blake R. Swensen" <blake@pyramus.com>
To:        freebsd-questions@FreeBSD.ORG
Cc:        vepjan@image.dk
Subject:   Re: freebsd as NIS-client?
Message-ID:  <Pine.BSF.3.91.991205104112.10040A-100000@phil.pyramus.com>
In-Reply-To: <199912051842.NAA48995@cc942873-a.ewndsr1.nj.home.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I ran into this same problem (only on all FBSD network).  Try adding the 
domain and server name to the ypbind command line... ie.

ypbind -S your.domain,your.NIS.server

also, make sure that your /etc/host.conf file includes nis in the 
resolution order...

#/etc/host.conf
#Check nis server first
nis
#Then check with the DNS server
bind
#then look under /etc/hosts last
hosts

Third, I found that it helps to have an /etc/hosts entry for the server 
on each of the clients... counter to what the host.conf says, it appears 
that some services don't come up fully during re-boot when ypbind is 
called from /etc/rc.conf, and certain clients had a hard time finding my 
master server.

Finally... although the man and documentation says otherwise, I couldn't 
get my clients to attach until I had an entry in /var/yp/securenets on 
the server. This is a good idea anyway... and pretty necessary if your 
clients are coming in different networks.

On Sun, 5 Dec 1999, Crist J. Clark wrote:

> vepjan@image.dk wrote,
> > 
> > I have problems using my freebsd-3.3 box as a NIS client.
> [snip]
> >
> > On freebsd I did this:
> > domainname "the right domain"
> > ypbind
> > 
> > As far as I understand I should then be able to
> > get a host by issuing 
> > ypwhich
> 
> IIRC, ypwhich does not actually _do_ anything, it just spits back the
> server that ypbind has found.
> 
> > But it runs for about 2 minuttes (and then i cancel it).
> 
> Hmmm...
> 
> > I've browsed this mailing list to find answers/directions
> > for the setup. All I found was "man nis" and reading this
> > didn't help. 
> > 
> > The master is a Digital Unix 4.0d.
> 
> Is the server on the same LAN?
> -- 
> Crist J. Clark                           cjclark@home.com
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.991205104112.10040A-100000>