Before configuring your NIS namespace, you must do the following.
Install properly configured nsswitch.conf files on all the machines that will be using NIS. See Chapter 2, The Name Service Switch (Overview) for details.
Plan your NIS domain.