ypwhich - display the NIS server if NIS is enabled
ypwhich
ypwhich prints the name of the current NIS server if NIS is enabled. If there is no entry for the server itself in the hosts database, then it prints the IP address of the server.
The NIS server is dynamically chosen by the filer.