Find IP of a host as a non root user in Solaris

Non privileged users in Solaris do not have the ability to perform “ping”, or “host”, or even “dig” to find the IP of a host in solaris. Another way one can get the IP address from a hostname in solaris is to use the getent command. This can be done with the following:

getent hosts <HOSTNAME>

This should return an IP address when queried

Be the first to comment

Leave a Reply