Before configuring your NIS namespace, you must:
Install properly configured nsswitch.conf files on all the machines that will be using NIS. See Chapter 1, Setting Up the Name Service Switch for details.
Plan your NIS domain "Planning Your NIS Domain".