4.3BSD-UWisc/man/cat8/ypwhich.8

Compare this file to the similar file:
Show the results in this format:




YPWHICH(8)          UNIX Programmer's Manual           YPWHICH(8)



NAME
     ypwhich - what machine is the YP server?

SYNOPSIS
     ypwhich [ -d domainname ] [ hostname ]

     ypwhich [ -d domainname ] [ -t ] -m [ mname ]

DESCRIPTION
     _Y_p_w_h_i_c_h tells which YP server supplies yellow pages to a YP
     client, and which YP server is the master for a map.  If
     invoked without arguments, it gives the YP server for the
     local machine.  If _h_o_s_t_n_a_m_e is specified, that machine is
     queried to find out which YP master it is using.

     If the -m switch is used without _m_n_a_m_e, a list of every map
     in the domain and the master of each will be printed.  If
     _m_n_a_m_e is specified, only the master YP server for that map
     is printed.  _M_n_a_m_e may be a mapname, or a nickname for a
     mapname. Mapnames and nicknames are described in _y_p_c_a_t(1).

OPTIONS
     -d   _D_o_m_a_i_n_n_a_m_e specifies the name of a YP domain.  The
          default is the default domain for the local machine.

     -m   Find the master YP server for a map, or for all maps in
          a domain.  No _h_o_s_t_n_a_m_e may be specified with -m.

     -t   Inhibit nickname translation; useful if there is a map-
          name identical to a nickname.  This is not true of any
          Sun-supplied map.

SEE ALSO
     ypfiles(5), rpcinfo(8), yppush(8), ypserv(8)





















Printed 12/27/86         26 August 1985                         1