1.\" $NetBSD: ypwhich.1,v 1.3 1996/05/13 02:43:46 thorpej Exp $ 2.\" 3.\" Copyright (c) 1994 Christopher G. Demetriou 4.\" All rights reserved. 5.\" 6.\" Redistribution and use in source and binary forms, with or without 7.\" modification, are permitted provided that the following conditions 8.\" are met: 9.\" 1. Redistributions of source code must retain the above copyright 10.\" notice, this list of conditions and the following disclaimer. 11.\" 2. Redistributions in binary form must reproduce the above copyright 12.\" notice, this list of conditions and the following disclaimer in the 13.\" documentation and/or other materials provided with the distribution. 14.\" 3. All advertising materials mentioning features or use of this software 15.\" must display the following acknowledgement: 16.\" This product includes software developed by Christopher G. Demetriou. 17.\" 3. The name of the author may not be used to endorse or promote products 18.\" derived from this software without specific prior written permission 19.\" 20.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 21.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 22.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 23.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30.\" 31.\" $FreeBSD$ 32.\" 33.Dd February 23, 1994 34.Dt YPWHICH 1 35.Os 36.Sh NAME 37.Nm ypwhich 38.Nd return hostname of YP server of map master 39.Sh SYNOPSIS 40.Nm 41.Op Fl d Ar domain 42.Oo 43.Op Fl t 44.Fl m Oo Ar mname Oc | Ar host 45.Oc 46.Nm 47.Fl x 48.Sh DESCRIPTION 49The 50.Nm 51utility tells which 52.Tn YP 53server supplies 54.Tn YP 55services to a client, or which is the master for a map. 56If invoked without arguments, it gives the 57.Tn YP 58server for the local machine. 59If 60.Ar host 61is specified, that machine is queried to find out 62which 63.Tn YP 64server it is using. 65.Pp 66The options are as follows: 67.Bl -tag -width indent 68.It Fl d Ar domain 69Specify a domain other than the default domain. 70.It Fl t 71Inhibit translation of map nicknames 72to their corresponding map names. 73.It Fl m Op Ar mname 74Find the master 75.Tn YP 76server for the named map. No 77.Ar host 78may be specified with the 79.Fl m 80option. 81.Ar Mname 82can be a map name or nickname. If 83.Ar mname 84is omitted, 85.Nm 86will produce a list of available maps. 87.It Fl x 88Display the map nickname table. 89.El 90.Sh SEE ALSO 91.Xr domainname 1 , 92.Xr ypcat 1 , 93.Xr ypmatch 1 , 94.Xr yp 8 , 95.Xr ypbind 8 , 96.Xr yppoll 8 , 97.Xr ypset 8 98.Sh AUTHORS 99.An Theo De Raadt 100