Ruby Lookup the IP address of host

Lookup the IP address of host

#!/usr/local/bin/ruby

require 'socket'

hostlookup = IPSocket::getaddress('google.com')
puts "socket addres: #{hostlookup}\n"