domainname - set or display name of current NIS domain
domainname [ name-of-domain ]
Without an argument, domainname displays the name of the current network
information service (NIS) domain, which typically encompasses a group of
hosts under the same administration. As such, the name of an NIS domain
is typically a valid Internet domain name in order to be consistent with
the domain name used by the BIND name server, named(1M).
Only the super-user can set the domain name by giving an argument; this
is performed by the system startup procedure using the contents of
/var/yp/ypdomain. This setting is persists only until the machine is
rebooted, when it will once again be set using the contents of the above
file. To permanently change the value change this file, then run the
domainname command as a privileged user or run the command:
Currently, the network information service uses domains only to refer
collectively to a group of hosts.
PPPPaaaaggggeeee 1111 [ Back ]