From owner-freebsd-questions@FreeBSD.ORG  Fri Jul  9 01:34:03 2004
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 72EB116A4CE
	for <freebsd-questions@freebsd.org>;
	Fri,  9 Jul 2004 01:34:03 +0000 (GMT)
Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1F74743D49
	for <freebsd-questions@freebsd.org>;
	Fri,  9 Jul 2004 01:34:03 +0000 (GMT)
	(envelope-from dan@dan.emsphone.com)
Received: (from dan@localhost)
	by dan.emsphone.com (8.12.10/8.12.10) id i691Y2AE089395;
	Thu, 8 Jul 2004 20:34:02 -0500 (CDT)
	(envelope-from dan)
Date: Thu, 8 Jul 2004 20:34:02 -0500
From: Dan Nelson <dnelson@allantgroup.com>
To: Doug Hardie <bc979@lafn.org>
Message-ID: <20040709013401.GE58856@dan.emsphone.com>
References: <200407081559.i68FxZfO043201@whoweb.com>
	<20040708164237.GH57155@dan.emsphone.com>
	<A4E63CF0-D11B-11D8-A27F-000393681B06@lafn.org>
	<20040708204417.GB58856@dan.emsphone.com>
	<F9CEE425-D13E-11D8-A27F-000393681B06@lafn.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <F9CEE425-D13E-11D8-A27F-000393681B06@lafn.org>
X-OS: FreeBSD 5.2-CURRENT
X-message-flag: Outlook Error
User-Agent: Mutt/1.5.6i
cc: FreeBSD Question List <freebsd-questions@freebsd.org>
Subject: Re: NIS server selection
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Fri, 09 Jul 2004 01:34:03 -0000

In the last episode (Jul 08), Doug Hardie said:
> On Jul 8, 2004, at 13:44, Dan Nelson wrote:
> >
> >The best you can do is make sure "ypwhich" points to the local
> >machine so that subsequent processes will use it.  You can't force
> >existing processes to switch.
> 
> Thanks.  I have now set 3 servers in the -S list.  ypwhich shows the
> one currently being used.  I need to be able to change that.  It
> appears that ypset is the way to do that.  However, when I start
> ypbind with the -ypsetme argument I still get "sorry, cannot ypset
> for domain NAME on host".  I am running ypset on that server.  That
> message comes from a request to rpc prog 100004 which is registered
> to rpserv so I don't see how an argument to ypbind would help this. 
> I don't find any similar arguments to ypserv.  How do you make ypset
> work without opening it up to the entire world?

>From looking at the source, the -S flag resets the -ypset and -ypsetme
flags. See if putting -ypsetme after the -S xxx arguments helps.

-- 
	Dan Nelson
	dnelson@allantgroup.com