ypwhich —
return hostname of NIS server of map master
  
    | ypwhich | [ -T] [-ddomain] [[-h]
      host] | 
  
    | ypwhich | [ -fTt] [-ddomain] [-hhost]-m[mname] | 
ypwhich tells which NIS server supplies NIS services to
  a client, or which is the master for a map. If invoked without arguments, it
  gives the NIS server for the local machine. If host is
  specified, that machine is queried to find out which NIS server it is using.
The options are as follows:
  - -ddomain
- Specify a domain other than the default domain.
- -f
- When used in conjunction with -m, forceypwhichto query host
      directly, without using the local copy of
      ypbind(8).
- -hhost
- Specify a host other than localhost to query for information.
- -m[mname]
- Find the master NIS server for the named map. mname
      can be a map name or nickname. If mname is omitted,
      ypwhichwill produce a list of available
    maps.
- -T
- Use TCP protocol instead of UDP.
- -t
- Inhibit translation of map nicknames to their corresponding map
    names.
- -x
- Display the map nickname table, found in
      /var/yp/nicknames. A built-in default translation
      table is used if /var/yp/nicknames does not exist
      (see nicknames(5) for
      details).
ypwhich exits with a non-zero exit code if
  -m is used, and there was a problem in determining the
  map's master.
Charles D. Cranor
Greywolf