3.7: How to Remove NIS From a SunOS Client?
-------------------------------------------
To remove NIS from a SunOS client, remove the NIS files, as follows:
% rm -r /var/yp/`domainname`
% rm /etc/defaultdomain
If you just want to temporarily disable NIS, you should move the
objects to different names, rather than removing them.
Afterwards, reboot the machine.
SunService Tip Sheet for Sun NIS
You should also remove nis from /etc/nsswitch.conf