xref: /freebsd/usr.bin/ypwhich/ypwhich.1 (revision 491a8429624c0cf6c17e6e0b80d6a09e3b347984)
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.\"
31c3aac50fSPeter Wemm.\" $FreeBSD$
32f2b73968SWolfram Schneider.\"
33f2b73968SWolfram Schneider.Dd February 23, 1994
34f2b73968SWolfram Schneider.Dt YPWHICH 1
35f2b73968SWolfram Schneider.Os
36f2b73968SWolfram Schneider.Sh NAME
37f2b73968SWolfram Schneider.Nm ypwhich
38f2b73968SWolfram Schneider.Nd return hostname of YP server of map master
39f2b73968SWolfram Schneider.Sh SYNOPSIS
408fe908efSRuslan Ermilov.Nm
41f2b73968SWolfram Schneider.Op Fl d Ar domain
42f2b73968SWolfram Schneider.Oo
43f2b73968SWolfram Schneider.Op Fl t
44f4ddfb38SRuslan Ermilov.Fl m Oo Ar mname Oc | Ar host
45f2b73968SWolfram Schneider.Oc
468fe908efSRuslan Ermilov.Nm
47f2b73968SWolfram Schneider.Fl x
48f2b73968SWolfram Schneider.Sh DESCRIPTION
49f2b73968SWolfram Schneider.Nm Ypwhich
50f2b73968SWolfram Schneidertells which
51f2b73968SWolfram Schneider.Tn YP
52f2b73968SWolfram Schneiderserver supplies
53f2b73968SWolfram Schneider.Tn YP
54f2b73968SWolfram Schneiderservices to a client, or which is the master for a map.
55f2b73968SWolfram SchneiderIf invoked without arguments, it gives the
56f2b73968SWolfram Schneider.Tn YP
57f2b73968SWolfram Schneiderserver for the local machine.
58f2b73968SWolfram SchneiderIf
59f2b73968SWolfram Schneider.Ar host
60f2b73968SWolfram Schneideris specified, that machine is queried to find out
61f2b73968SWolfram Schneiderwhich
62f2b73968SWolfram Schneider.Tn YP
63f2b73968SWolfram Schneiderserver it is using.
64f2b73968SWolfram Schneider.Pp
65f2b73968SWolfram SchneiderThe options are as follows:
66f2b73968SWolfram Schneider.Bl -tag -width indent
67f2b73968SWolfram Schneider.It Fl d Ar domain
68f2b73968SWolfram SchneiderSpecify a domain other than the default domain.
69f2b73968SWolfram Schneider.It Fl t
70f2b73968SWolfram SchneiderInhibit translation of map nicknames
71f2b73968SWolfram Schneiderto their corresponding map names.
72f2b73968SWolfram Schneider.It Fl m Op Ar mname
73f2b73968SWolfram SchneiderFind the master
74f2b73968SWolfram Schneider.Tn YP
75f2b73968SWolfram Schneiderserver for the named map.  No
76f2b73968SWolfram Schneider.Ar host
77f2b73968SWolfram Schneidermay be specified with the
78f2b73968SWolfram Schneider.Fl m
79f2b73968SWolfram Schneideroption.
80f2b73968SWolfram Schneider.Ar Mname
81f2b73968SWolfram Schneidercan be a map name or nickname.  If
82f2b73968SWolfram Schneider.Ar mname
8332c21313SSteve Priceis omitted,
848fe908efSRuslan Ermilov.Nm
85f2b73968SWolfram Schneiderwill produce a list of available maps.
86f2b73968SWolfram Schneider.It Fl x
87f2b73968SWolfram SchneiderDisplay the map nickname table.
88f2b73968SWolfram Schneider.El
89f2b73968SWolfram Schneider.Sh SEE ALSO
90f2b73968SWolfram Schneider.Xr domainname 1 ,
91f2b73968SWolfram Schneider.Xr ypcat 1 ,
92f2b73968SWolfram Schneider.Xr ypmatch 1 ,
93491a8429SRuslan Ermilov.Xr yp 8 ,
94f2b73968SWolfram Schneider.Xr ypbind 8 ,
95f2b73968SWolfram Schneider.Xr yppoll 8 ,
96f2b73968SWolfram Schneider.Xr ypset 8
97306005e7SPhilippe Charnier.Sh AUTHORS
98306005e7SPhilippe Charnier.An Theo De Raadt
99