.\" @(#)domainname.1 1.4 85/03/04 SMI; .TH DOMAINNAME 1 "1 February 1985" .SH NAME domainname \- set or display name of current domain system .SH SYNOPSIS .B domainname [ nameofdomain ] .SH DESCRIPTION .IX "domainname command" "" "\fLdomainname\fP \(em set/display domain name" .IX domain "set or display current" .IX "current domain" "set or display" .IX display "current domain" .IX set "current domain" With no arguments, .I domainname displays the name of the current domain. The yellow pages use the domain to refer to a group of hosts. .LP Only the super-user can set the domainname by giving an argument; this is usually done in the startup script .IR /etc/rc.local . .SH SEE ALSO getdomainname(2), setdomainname(2), ypinit(8)