Each network interface must have an /etc/hostname.interface file defining the name of the IP address associated with it. For example, IPFC network interface fcip0 has a file named /etc/hostname.fcip0.
Manually create a /etc/hostname.interface file that contains a single line that identifies the host name or interface IP address.
Make any additional entries to the /etc/inet/hosts file.
The Solaris 10 OS installation program creates the /etc/inet/hosts file with minimum entries. You must manually make additional entries with a text editor. See the hosts(4) man page for additional information.
The /etc/inet/hosts file contains the hosts database. This file contains the host names and the primary network interface IP addresses, as well as the IP addresses of other network interfaces attached to the system and of any other network interfaces that the machine must know about.
The following example shows an etc/inet/host file.
127.0.0.1 localhost loghost 18.104.22.168 sun1 #This is the local host name 22.214.171.124 fcip0 #Interface to network 126.96.36.199
Edit the /etc/nsswitch.conf file so that all uncommented entries have the word files before any other name service.
The /etc/nsswitch.conf specifies which name service to use for a particular machine. The following code shows an example of an /etc/nsswitch.conf file.
hosts: files nis