libnsl

Client library for NIS and NIS+ network information services.

brewmacoslinux
Try with needOr install directly
Source

About

Public client interface for NIS(YP) and NIS+

Examples

check if NIS library is installed and available$ ldconfig -p | grep libnsl
verify NIS client can connect to NIS server$ ypwhich
look up user information from NIS database$ getent passwd username
query NIS server for host information$ getent hosts hostname
compile C program that uses NIS network lookups$ gcc -o myapp myapp.c -lnsl