nodename(5) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

nodename(5)

nodename(5)                      File Formats                      nodename(5)



NAME
       nodename - local source for system name

SYNOPSIS
       /etc/nodename

DESCRIPTION
       When  a  machine is standalone or its IP address is configured locally,
       the svc:/system/identity:node SMF service has a property, namely  node‐
       name, for setting the system name.


       To set the name of the node permanently use the following command:

         # hostname mynodename



       To set the name of the node temporarily use the following command:

         # hostname -t mynodename



       To see the current effective hostname:

         $ hostname



       To  see  the currently set nodename for the host use the following com‐
       mand:

         $ svcprop -p config/nodename svc:/system/identity:node



       The value of this property used to  be  located  in  the  /etc/nodename
       file.  If  /etc/nodename is present and the SMF service property is not
       set, the SMF service reads /etc/nodename and populates the property.


       Once the SMF service property has been set, the /etc/nodename  file  is
       removed and no longer consulted.


       The config/nodename service property is not the only source used by the
       service for configuring the system name. By default  the  service  uses
       the following sources for determining the system name:


       If  the  machine's  network configuration is delivered by the RPC boot‐
       params protocol, neither the SMF service property nor the /etc/nodename
       file are used, as the system name is delivered by the remote service.


       If  the machine's network configuration is delivered by the DHCP proto‐
       col, the SMF service property is used only if the DHCP server does  not
       provide a value for the Hostname option (DHCP standard option code 12).


       If no other sources for the system name exist, then the config/nodename
       service property value is used. This  default  behavior  is  overridden
       whenever  hostname(1) is used to manually configure a hostname. In this
       case, the config/nodename property value will serve as  the  persistent
       source  for  the  system  name.  The  hostname -D option may be used to
       return the system back to the default behavior. To determine whether or
       not  the system is using the default behavior or not, use the following
       command:

         $ svcprop -p config/ignore_dhcp_hostname svc:/system/identity:node



       A value of "false" indicates that the  service  will  use  the  default
       behavior to determine the system name. A value of "true" means the ser‐
       vice will use the config/nodename property value as the system name.


       Note  that  this  default  behavior  may  change  and  that  the   con‐
       fig/ignore_dhcp_hostname  property  may  be  removed in a future Oracle
       Solaris release.


       A system name configured in the SMF service should be unique within the
       system's  name  service domain in order to ensure that any network ser‐
       vices provided by the system operate correctly.


       Given a system name value, regardless of source,  uname   -S  sets  the
       system name of the running system.


       If the system is installed or configured using sysconfig(8) with a man‐
       ual network configuration, /etc/inet/hosts is updated to map the  node‐
       name to the IP Address of the configured interfaces.


       If  the  system is installed or configured with a network configuration
       not defined manually, /etc/inet/hosts is updated to map the nodename to
       the loopback entries.


       If  the  system  is installed or configured with no network interfaces,
       /etc/inet/hosts is updated to map the nodename to the loopback entries.


       If the administrator chooses to prevent any of this  mapping  behavior,
       the  administrator  can set the config/enable_mapping svc:/system/iden‐
       tity:node service property to false in the AI install manifest.

EXAMPLES
       Example 1 Syntax for the nodename File



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


         myhost


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       tab()  box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
       TRIBUTE VALUE _ Availabilitysystem/core-os


SEE ALSO
       hostname(1), uname(1), attributes(7), named(8), sysconfig(8), ypbind(8)



Oracle Solaris 11.4               11 May 2021                      nodename(5)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3