'\" te .\" Copyright 1989 AT&T Copyright (c) 1988 Sun Microsystems, Inc. - All Rights Reserved. Copyright (c) 1995 Sun Microsystems, Inc. All Rights Reserved. .TH ypwhich 1 "7 Apr 1995" "SunOS 5.11" "User Commands" .SH NAME ypwhich \- return name of NIS server or map master .SH SYNOPSIS .LP .nf \fBypwhich\fR [\fB-d\fR \fIdomain\fR] [ [\fB-t\fR] \fB-m\fR [\fImname\fR] | [\fB-Vn\fR] \fIhostname\fR] .fi .LP .nf \fBypwhich\fR \fB-x\fR .fi .SH DESCRIPTION .sp .LP \fBypwhich\fR returns the name of the NIS server that supplies the NIS name services to a NIS client, or which is the master for a map. If invoked without arguments, it gives the NIS server for the local machine. If \fBhostname\fR is specified, that machine is queried to find out which NIS master it is using. .sp .LP Refer to \fBypfiles\fR(4) for an overview of the NIS name services. .SH OPTIONS .sp .ne 2 .mk .na \fB\fB-d\fR\fI domain\fR\fR .ad .RS 13n .rt Use \fIdomain\fR instead of the default domain. .RE .sp .ne 2 .mk .na \fB\fB-t\fR\fR .ad .RS 13n .rt This option inhibits map nickname translation. .RE .sp .ne 2 .mk .na \fB\fB-m\fR\fI mname\fR\fR .ad .RS 13n .rt Find the master NIS server for a map. No \fBhostname\fR can be specified with \fB-m\fR. \fImname\fR can be a mapname, or a nickname for a map. When \fImname\fR is omitted, produce a list of available maps. .RE .sp .ne 2 .mk .na \fB\fB-x\fR\fR .ad .RS 13n .rt Display the map nickname translation table. .RE .sp .ne 2 .mk .na \fB\fB\(miVn\fR\fR .ad .RS 13n .rt Version of \fBypbind\fR, V3 is default. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Availabilitysystem/network/nis .TE .SH SEE ALSO .sp .LP \fBypfiles\fR(4), \fBattributes\fR(5)