Get hostname ip

Added feature so that pinging a website address also prints the ip
address.