DOMAINNAME(1) OpenBSD Reference Manual DOMAINNAME(1)NAMEdomainname - set or print YP domain of current host system
SYNOPSISdomainname [name-of-domain]
DESCRIPTION
The domainname utility prints the YP domain name of the current host.
The superuser can set the domain name by supplying a /etc/defaultdomain
file (see defaultdomain(5)). This is used at system boot time by
netstart(8) to initialize the domainname.
SEE ALSOhostname(1), getdomainname(3), setdomainname(3), defaultdomain(5),
netstart(8), yp(8)HISTORY
The domainname utility is derived from the hostname(1) utility, which
appeared in 4.2BSD. The domainname utility appeared in NetBSD 0.8.
OpenBSD 4.9 May 31, 2007 OpenBSD 4.9