System Administration Guide: Naming and Directory Services (NIS+)

When Changing a Machine to a Different NIS+ Domain

If this machine is an NIS+ client and you are trying to change it to a client of a different domain, remove the /etc/.rootkey file, and then rerun the nisclient script using the network password supplied by your network administrator or taken from the nispopulate script.