xref: /titanic_50/usr/src/man/man4/nodename.4 (revision 6d6fcbbb256ba9a8fe3e6076ae8a1f493b1f1a99)
te
Copyright 2015 Nexenta Systems, Inc. All rights reserved.
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]
NODENAME 4 "Feb 7, 2015"
NAME
nodename - local source for system name
SYNOPSIS

/etc/nodename
DESCRIPTION

When a machine is standalone or its IP address is configured locally, the /etc/nodename 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, hostname.hme0.

If the machine's network configuration is delivered by the RPC bootparams protocol, the /etc/nodename file is not used, as the system name is delivered by the remote service.

If the machine's network configuration is delivered by the DHCP protocol, the /etc/nodename file is used only if the DHCP server does not provide a value for the Hostname option (DHCP standard option code 12).

A system name configured in /etc/nodename 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.

Given a system name value, regardless of source, the uname utility invoked with the -S option is used to set the system name of the running system.

EXAMPLES

Example 1 Syntax

The syntax for nodename consists of a single line containing the system's name. For example, for a system named myhost:

myhost
SEE ALSO

NIS+(1), uname(1), named(1M), ypbind(1M), attributes(5)

NOTES

The nodename file is modified by Solaris installation and de-installation scripts.