'\" te .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved. .\" 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 NODENAME 4 "Feb 9, 2004" .SH NAME nodename \- local source for system name .SH SYNOPSIS .LP .nf \fB/etc/nodename\fR .fi .SH DESCRIPTION .sp .LP When a machine is standalone or its IP address is configured locally, the \fB/etc/nodename\fR file contains the system name. By convention, the system name is the same as the hostname associated with the IP address of the primary network interface, for example, \fBhostname.hme0\fR. .sp .LP If the machine's network configuration is delivered by the RPC bootparams protocol, the \fB/etc/nodename\fR file is not used, as the system name is delivered by the remote service. .sp .LP Given a system name value, regardless of source, the \fBuname\fR utility invoked with the \fB-S\fR option is used to set the system name of the running system. .sp .LP If the machine's network configuration is delivered by the DHCP protocol, the \fB/etc/nodename\fR file is used only if the DHCP server does not provide a value for the Hostname option (DHCP standard option code 12). .sp .LP A system name configured in \fB/etc/nodename\fR should be unique within the system's name service domain in order to ensure that any network services provided by the system will operate correctly. .sp .LP Given a system name value, regardless of source, the \fBuname\fR utility invoked with the \fB-S\fR option is used to set the system name of the running system. .SH EXAMPLES .LP \fBExample 1 \fRSyntax .sp .LP The syntax for \fBnodename\fR consists of a single line containing the system's name. For example, for a system named \fBmyhost\fR: .sp .in +2 .nf myhost .fi .in -2 .SH SEE ALSO .sp .LP \fBNIS+\fR(1), \fBuname\fR(1), \fBnamed\fR(1M), \fBypbind\fR(1M), \fBattributes\fR(5) .SH NOTES .sp .LP The \fBnodename\fR file is modified by Solaris installation and de-installation scripts.