- NIS provides a simple network lookup service consisting of databases and processes.
- It allows the distribution of information that resides on a server to all hosts on the network
NIS is often used to distribute a central passwd file. In such a case NIS distributes /etc/passwd and /etc/groups to all hosts in the NIS domain allowing a user to use same password and username to log into all systems on the network.
- When more than one NIS server exists for a domain one server is configured as a Master, the others as Slaves.
- The NIS master server stores all canonical copies of all NIS information databases/maps.
- NIS slave servers maintain backup copies of NIS maps that are periodically updated by the master.
- NIS master and slave servers handle all NIS requests via the 'ypserv' daemon.
- NIS domain
can be what you like though must be the same for all clients and servers (within the domain)
The NIS ypservers map containing the names of all servers in a particular NIS domain.
Set the NIS domain. Same as for client.
NIS is not very secure - several steps may well be needed to beef up security, some of these are covered in later articles, others may well be distribution dependant so read your distro's documentation on the subject.
NIS is dangerous - anyone who can get access to the daemon can dump your password lists.
Since what security there is is IP address related - using dynamic IPs via DHCP is not recommend. At the very least use static IPs for client and servers.