Network Information Service, NIS


NIS (Network Information Service) is a distributed directory service protocol developed by Sun Microsystems for UNIX and UNIX-like systems. Its primary function is to centrally manage system configuration information across multiple hosts within a network, such as user accounts, passwords, hostnames, and groups, thereby simplifying system administration.

How NIS Works

NIS adopts a master-slave architecture:

This centralized management approach allows system administrators to update data only on the master server, and all clients can automatically obtain the latest information, avoiding the tedious work of configuring each host individually.

History and Naming of NIS

NIS was originally called "Yellow Pages (YP)," but due to "Yellow Pages" being a registered trademark of British Telecom in the UK, Sun Microsystems was forced to rename it to NIS. However, many related commands and functions still retain the "yp" prefix, such as ypcat, ypmatch, and ypwhich.

Advantages of NIS

Limitations of NIS and Alternatives

Although NIS was widely used in the past, its security and scalability have become insufficient with the development of network environments: