On the command line, type the following command:
% getent ipnodes host-name
The information about host-name displays.
% getent ipnodes vallejo 2::56:a00:fe87:9aba vallejo vallejo fec0::56:a00:fe87:9aba vallejo vallejo