ypwhich(1yp)ypwhich(1yp)Nameypwhich - determine which host is the current YP server or map master.
Syntaxypwhich [-d domain] [-V1] [-V2] [hostname]
ypwhich [-d domain] [-m mname][-t]]
ypwhich-x
Description
The command identifies the YP server that currently supplies yellow
pages services to a YP client. It also identifies which YP server is
the master for a map. If invoked without arguments, returns the host
name of the YP server for the local machine. If hostname is specified,
checks that machine to find out which YP master it is using.
Refer to and for an overview of the yellow pages.
Options-V1
Identifies which server is serving v.1 YP protocol-speaking client
processes.
-V2
Identifies which server is serving v.2 YP protocol-speaking client
processes.
If neither version is specified, attempts to locate the server that
supplies the current v.2 services. If there is no v.2 server cur‐
rently bound, attempts to locate the server supplying the v.1 ser‐
vices. Since YP servers and YP clients are both backward compati‐
ble, the user need seldom be concerned about which version is cur‐
rently in use.
-d Uses domain instead of the current domain.
-m mname
Finds the master YP server for a map. No hostname can be specified
with -m. The mname argument can be a mapname, or a nickname for a
map.
-t Inhibits nickname translation and is useful if there is a mapname
identical to a nickname.
-x Displays the map nickname table. This option lists the nicknames
(mnames) that the command knows of, and indicates the mapname asso‐
ciated with each nickname.
See Alsoypfiles(5yp), rpcinfo(8nfs), ypserv(8yp), ypsetup(8yp)ypwhich(1yp)