Print this page
Placeholder

@@ -1,24 +1,30 @@
 '\" te
 .\" Copyright (c) 1992, Sun Microsystems, Inc.
+.\" Copyright 2016 RackTop Systems.
 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH HOSTNAME 1 "Sep 14, 1992"
+.TH HOSTNAME 1 "May 10, 2016"
 .SH NAME
 hostname \- set or print name of current host system
 .SH SYNOPSIS
 .LP
 .nf
-\fB/usr/bin/hostname\fR [\fIname-of-host\fR]
+\fB/usr/bin/hostname\fR [\fI-d\fR | \fI-f\fR] [\fIdomain\fR | \fIhostname\fR]
 .fi
 
 .SH DESCRIPTION
 .sp
 .LP
-The \fBhostname\fR command prints the name of the current host, as given before
-the \fBlogin\fR prompt. The super-user can set the hostname by giving an
-argument.
+With no arguments th \fBhostname\fR command prints the name of the current
+host, as given before the \fBlogin\fR prompt.  If \fB-d\fR is passed the
+hostname command will instead print out the name of default domain, and if
+\fB-f\fR is passed the hostname will be fully-qualified.
+.sp
+The super-user can set the hostname (or domain name if \fB-d\fR is passed) by
+passing the new value as an additional argument.  The FQDN (fully qualified
+domain name) cannot be set using the hostname command.
 .SH SEE ALSO
 .sp
 .LP
 \fBuname\fR(1), \fBattributes\fR(5)