ypwhich - return hostname of NIS server or map master
ypwhich
[ -d [ domain ] ] [ hostname ]
ypwhich [ -t mapname ] [ -d
domain ] -m [ mname ]
ypwhich -x
ypwhich tells which Network Information Service ( NIS ) server supplies NIS services 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.
-d |
Use domain instead of the default domain. |
-t mapname
Inhibit nickname translation; useful if there is a mapname identical to a nickname.
-m |
Find the master NIS server for a map. No hostname can be specified with the -m option. mname can be a mapname, or a nickname for a map. When mname is omitted, produce a list 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. |
ypserv(8), ypset(8)
The Network Information Service ( NIS ) was formerly known as Yellow Pages ( YP ). The functionality of the two remains the same; only the name has changed. The name Yellow Pages is a registered trademark in the United Kingdom of British Telecommunications plc, and may not be used without permission.