xref: /freebsd/usr.bin/ypwhich/ypwhich.1 (revision e8937ba00998cca6f259b3fdf32a7f7a38bc26ec)
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
49e8937ba0SPhilippe CharnierThe
50e8937ba0SPhilippe Charnier.Nm
51e8937ba0SPhilippe Charnierutility tells which
52f2b73968SWolfram Schneider.Tn YP
53f2b73968SWolfram Schneiderserver supplies
54f2b73968SWolfram Schneider.Tn YP
55f2b73968SWolfram Schneiderservices to a client, or which is the master for a map.
56f2b73968SWolfram SchneiderIf invoked without arguments, it gives the
57f2b73968SWolfram Schneider.Tn YP
58f2b73968SWolfram Schneiderserver for the local machine.
59f2b73968SWolfram SchneiderIf
60f2b73968SWolfram Schneider.Ar host
61f2b73968SWolfram Schneideris specified, that machine is queried to find out
62f2b73968SWolfram Schneiderwhich
63f2b73968SWolfram Schneider.Tn YP
64f2b73968SWolfram Schneiderserver it is using.
65f2b73968SWolfram Schneider.Pp
66f2b73968SWolfram SchneiderThe options are as follows:
67f2b73968SWolfram Schneider.Bl -tag -width indent
68f2b73968SWolfram Schneider.It Fl d Ar domain
69f2b73968SWolfram SchneiderSpecify a domain other than the default domain.
70f2b73968SWolfram Schneider.It Fl t
71f2b73968SWolfram SchneiderInhibit translation of map nicknames
72f2b73968SWolfram Schneiderto their corresponding map names.
73f2b73968SWolfram Schneider.It Fl m Op Ar mname
74f2b73968SWolfram SchneiderFind the master
75f2b73968SWolfram Schneider.Tn YP
76f2b73968SWolfram Schneiderserver for the named map.  No
77f2b73968SWolfram Schneider.Ar host
78f2b73968SWolfram Schneidermay be specified with the
79f2b73968SWolfram Schneider.Fl m
80f2b73968SWolfram Schneideroption.
81f2b73968SWolfram Schneider.Ar Mname
82f2b73968SWolfram Schneidercan be a map name or nickname.  If
83f2b73968SWolfram Schneider.Ar mname
8432c21313SSteve Priceis omitted,
858fe908efSRuslan Ermilov.Nm
86f2b73968SWolfram Schneiderwill produce a list of available maps.
87f2b73968SWolfram Schneider.It Fl x
88f2b73968SWolfram SchneiderDisplay the map nickname table.
89f2b73968SWolfram Schneider.El
90f2b73968SWolfram Schneider.Sh SEE ALSO
91f2b73968SWolfram Schneider.Xr domainname 1 ,
92f2b73968SWolfram Schneider.Xr ypcat 1 ,
93f2b73968SWolfram Schneider.Xr ypmatch 1 ,
94491a8429SRuslan Ermilov.Xr yp 8 ,
95f2b73968SWolfram Schneider.Xr ypbind 8 ,
96f2b73968SWolfram Schneider.Xr yppoll 8 ,
97f2b73968SWolfram Schneider.Xr ypset 8
98306005e7SPhilippe Charnier.Sh AUTHORS
99306005e7SPhilippe Charnier.An Theo De Raadt
100