DOMAINNAME(1)              OpenBSD Reference Manual              DOMAINNAME(1)

NAME
     domainname - set or print YP domain of current host system

SYNOPSIS
     domainname [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.  This is used at system boot time by rc(8) to initialize the do-
     mainname.

SEE ALSO
     hostname(1), getdomainname(3), setdomainname(3)

HISTORY
     The domainname utility is derived from the hostname(1) utility, which ap-
     peared in 4.2BSD. The domainname utility appeared in NetBSD 0.8.

OpenBSD 2.9                      May 31, 1993                                1
