ypwhich(1) ONC R4.11 ypwhich(1)
NAME
ypwhich - tell which host is the NIS server or map master
SYNOPSIS
ypwhich [ -d [ domain ] ] [ -V1 | -V2 ] [ hostname ]
ypwhich [ -t mapname ] [ -d domain ] -m [ mname ]
ypwhich -x
DESCRIPTION
Ypwhich tells which NIS server supplies the Network Information
Service to an NIS client, or which is the master for a map. If
invoked without arguments, it gives the NIS server for the local
machine. If hostname is specified, that machine is queried to find
out which NIS server it is using.
Refer to ypfiles(4) and ypserv(1M) for an overview of the Network
Information Service.
OPTIONS
-d Use domain instead of the default domain.
-V1 Tell which server is serving v.1 NIS protocol client
processes.
-V2 Tell which server is serving v.2 NIS protocol client
processes.
If neither version is specified, ypwhich attempts to locate
the server that supplies the (current) v.2 services. If there
is no v.2 server currently bound, ypwhich then attempts to
locate the server supplying the v.1 services. Since NIS
servers and NIS clients are both backward compatible, the user
need seldom be concerned about which version is currently in
use.
-t mapname
Inhibit nickname translation; useful if there is a mapname
identical to a nickname. This is not true of any DG/UX
ONC/NFS-supplied map.
-m Find the master NIS server for a map. No hostname can be
specified with -m. mname can be a mapname, or a nickname for
a map. When mname is omitted, produce a list of available
maps.
-x Display the map nickname table. This lists the nicknames
(mnames) the command knows of, and indicates the mapname
associated with each nickname.
SEE ALSO
rpcinfo(1M), ypserv(1M), ypset(1M), ypfiles(4).
Licensed material--property of copyright holder(s)