The value of the NIS or NIS+ domain is the output of the domainname command. For example, the value superhero.com is returned by this domainname command:
% domainname superhero.com