From owner-freebsd-questions Sun Dec 5 10:53:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from phil.pyramus.com (phil.pyramus.com [206.129.206.2]) by hub.freebsd.org (Postfix) with ESMTP id 6CAFB153FF for ; Sun, 5 Dec 1999 10:53:11 -0800 (PST) (envelope-from blake@pyramus.com) Received: from phil.pyramus.com (phil.pyramus.com [206.129.206.2]) by phil.pyramus.com (8.8.3/8.6.12) with SMTP id KAA10052; Sun, 5 Dec 1999 10:54:21 -0800 (PST) Date: Sun, 5 Dec 1999 10:54:21 -0800 (PST) From: "Blake R. Swensen" To: freebsd-questions@FreeBSD.ORG Cc: vepjan@image.dk Subject: Re: freebsd as NIS-client? In-Reply-To: <199912051842.NAA48995@cc942873-a.ewndsr1.nj.home.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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