domainname(1) ONC R4.11 domainname(1)
NAME
domainname - set or display name of the current NIS domain
SYNOPSIS
domainname [ name-of-domain ]
DESCRIPTION
Without an argument, domainname displays the name of the current
domain, which typically encompasses a group of hosts under the same
administration. As such, the name of an NIS domain is normally also
a valid Internet domain name, and can be used in conjunction with
sendmail(1M) and the name server named(1M).
Only a user with appropriate privilege can set the name of the domain
by giving domainname an argument; this is usually done in the startup
script /usr/sbin/init.d/rc.ypserv using an argument defined in
/etc/nfs.params.
For systems supporting the DG/UX Capability Option, appropriate
privilege is defined as having one or more specific capabilities
enabled in the effective capability set of the user. See
capdefaults(5) for the default capabilities for this command.
On systems without the DG/UX Capability Option, appropriate privilege
means that your process has an effective UID of root. See the
appropriateprivilege(5) man page for more information.
SEE ALSO
named(1M), sendmail(1M), ypinit(1M), appropriateprivilege(5).
capdefaults(5).
Licensed material--property of copyright holder(s)