1.\" $NetBSD: ypset.8,v 1.6 2002/02/02 02:31:24 wiz Exp $ 2.\" 3.\" Copyright (c) 1996 The NetBSD Foundation, Inc. 4.\" All rights reserved. 5.\" 6.\" This code is derived from software contributed to The NetBSD Foundation 7.\" by Jason R. Thorpe. 8.\" 9.\" Redistribution and use in source and binary forms, with or without 10.\" modification, are permitted provided that the following conditions 11.\" are met: 12.\" 1. Redistributions of source code must retain the above copyright 13.\" notice, this list of conditions and the following disclaimer. 14.\" 2. Redistributions in binary form must reproduce the above copyright 15.\" notice, this list of conditions and the following disclaimer in the 16.\" documentation and/or other materials provided with the distribution. 17.\" 3. All advertising materials mentioning features or use of this software 18.\" must display the following acknowledgement: 19.\" This product includes software developed by the NetBSD 20.\" Foundation, Inc. and its contributors. 21.\" 4. Neither the name of The NetBSD Foundation nor the names of its 22.\" contributors may be used to endorse or promote products derived 23.\" from this software without specific prior written permission. 24.\" 25.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 26.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 27.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 28.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 29.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35.\" POSSIBILITY OF SUCH DAMAGE. 36.\" 37.Dd October 25, 1994 38.Dt YPSET 8 39.Os 40.Sh NAME 41.Nm ypset 42.Nd tell 43.Xr ypbind 8 44which YP server process to use 45.Sh SYNOPSIS 46.Nm 47.Op Fl h Ar host 48.Op Fl d Ar domain 49.Ar server 50.Sh DESCRIPTION 51.Nm 52tells the 53.Xr ypbind 8 54process on the current machine which 55.Tn YP 56server process to communicate with. 57If 58.Ar server 59is down or is not running a 60.Tn YP 61server process, it is not discovered until 62a 63.Tn YP 64client process attempts to access a 65.Tn YP 66map, at which time 67.Xr ypbind 8 68tests the binding and takes appropriate action. 69.Pp 70.Nm 71is most useful for binding a 72.Tn YP 73client that is not on the same broadcast 74network as the closest 75.Tn YP 76server, but can also be used for debugging 77a local network's 78.Tn YP 79configuration, testing specific 80.Tn YP 81client 82programs, or binding to a specific server when there are many servers on 83the local network supplying 84.Tn YP 85maps. 86.Pp 87The options are as follows: 88.Bl -tag -width indent 89.It Fl h Ar host 90Set the 91.Tn YP 92binding on 93.Ar host 94instead of the local machine. 95.It Fl d Ar domain 96Use the 97.Tn YP 98domain 99.Ar domain 100instead of the default domain as returned by 101.Xr domainname 1 . 102.El 103.Sh SEE ALSO 104.Xr domainname 1 , 105.Xr ypcat 1 , 106.Xr ypmatch 1 , 107.Xr ypwhich 1 , 108.Xr yp 8 , 109.Xr ypbind 8 , 110.Xr yppoll 8 111.Sh AUTHORS 112.An Theo de Raadt 113