NIS または NIS+ ドメインの値は domainname コマンドの出力です。たとえば、次の domainname コマンドでは superhero.com という値が戻されています。
% domainname superhero.com