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