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