1nodename(4) File Formats nodename(4)
2
3
4
6 nodename - local source for system name
7
9 /etc/nodename
10
11
13 When a machine is standalone or its IP address is configured locally,
14 the /etc/nodename file contains the system name. By convention, the
15 system name is the same as the hostname associated with the IP address
16 of the primary network interface, for example, hostname.hme0.
17
18
19 If the machine's network configuration is delivered by the RPC boot‐
20 params protocol, the /etc/nodename file is not used, as the system name
21 is delivered by the remote service.
22
23
24 Given a system name value, regardless of source, the uname utility
25 invoked with the -S option is used to set the system name of the run‐
26 ning system.
27
28
29 If the machine's network configuration is delivered by the DHCP proto‐
30 col, the /etc/nodename file is used only if the DHCP server does not
31 provide a value for the Hostname option (DHCP standard option code 12).
32
33
34 A system name configured in /etc/nodename should be unique within the
35 system's name service domain in order to ensure that any network ser‐
36 vices provided by the system will operate correctly.
37
38
39 Given a system name value, regardless of source, the uname utility
40 invoked with the -S option is used to set the system name of the run‐
41 ning system.
42
44 Example 1 Syntax
45
46
47 The syntax for nodename consists of a single line containing the sys‐
48 tem's name. For example, for a system named myhost:
49
50
51 myhost
52
53
55 See attributes(5) for descriptions of the following attributes:
56
57
58
59
60 ┌─────────────────────────────┬─────────────────────────────┐
61 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
62 ├─────────────────────────────┼─────────────────────────────┤
63 │Availability │SUNWcsu │
64 └─────────────────────────────┴─────────────────────────────┘
65
67 NIS+[22m(1), uname(1), named(1M), ypbind(1M), attributes(5)
68
70 The nodename file is modified by Solaris installation and de-installa‐
71 tion scripts.
72
73
74
75SunOS 5.11 9 Feb 2004 nodename(4)