here is a walkthrough to set up a NIS server under Ubuntu Hardy, because the standard configuration is only for clients.
apt-get install nis
NIS domain: be creative :-)
Then wait till the ypbind search is over (it tries very hard to find a server…) otherwise the package is not completely installed.
In the mean time, you can prepare the server.
NISSERVER = master
NISCLIENT = false
# This line gives access to everybody. PLEASE ADJUST! Adjusted! ;-)
When the installation is complete, you can proceed with the following steps:
Congratulations, your NIS server is now running! :-)