This procedure can be used for Solaris 10 11/06 and earlier releases only. For subsequent releases, you can perform the same operation on the hosts database.
Under your user account, type the following command:
% getent ipnodes hostname
The information about the specified host-name is displayed.
The following sample shows the output of the getent command:
% getent ipnodes vallejo 2001:0db8:8512:2:56:a00:fe87:9aba myhost myhost fe80::56:a00:fe87:9aba myhost myhost