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