Below commands can be used : nslookup - to find the IP address from a hostname or vice-versa. ipconfig or ifconfig - based on whether the host is Windows or Unix hostname -i - on Linux