FreeBSD man pages : domainname (1)
DOMAINNAME(1) FreeBSD General Commands Manual DOMAINNAME(1)
domainname - set or print name of current YP/NIS domain
The domainname utility prints the name of the current YP/NIS domain. The
super-user can set the domain name by supplying an argument; this is usu-
ally done in the network initialization script /etc/rc.network, normally
run at boot time.
The YP/NIS (formerly ``Yellow Pages'' but renamed for legal reasons)
domain name does not necessarily have anything to do with the Domain Name
System domain name, although they are often set equal for administrative
The domainname command appeared in FreeBSD 1.1, based on a similar com-
mand in SunOS.
FreeBSD 4.8 September 18, 1994 FreeBSD 4.8