The /etc/inet/ipnodes file stores both IPv4 and IPv6 addresses. It serves as a local database that associates the names of hosts with their IPv4 and IPv6 addresses. You should not store host names and their addressess in static files, such as /etc/inet/ipnodes. However, for testing purposes, it might be useful to store IPv6 addresses in a file in the same way that IPv4 addresses are stored in /etc/inet/hosts. The ipnodes file uses the same format convention as the hosts file. See "Network Databases" for a description of the hosts file. See ipnodes(4) man page for a description of the ipnodes file.
IPv6-aware utilities use the new /etc/inet/ipnodes database. The existing /etc/hosts database, which contains only IPv4 addresses, remains as it is to facilitate existing applications. If the ipnodes database does not exist, IPv6-aware utilities use the existing hosts database.
If you need to add addresses, you must add IPv4 addresses to both the hosts and ipnodes files. You add only IPv6 addresses to the ipnodes file.
# # Internet IPv6 host table # with both IPv4 and IPv6 addresses # ::1 localhost 2::9255:a00:20ff:fe78:f37c fripp.guitars.com fripp fripp-v6 fe80::a00:20ff:fe78:f37c fripp-11.guitars.com frippll 120.46.85.87 fripp.guitars.com fripp fripp-v4 2::9255:a00:20ff:fe87:9aba strat.guitars.com strat strat-v6 fe80::a00:20ff:fe87:9aba strat-11.guitars.com stratll 120.46.85.177 strat.guitars.com strat strat-v4 loghost |
You must group host name addresses by the host name as shown in the above example.