Network Ruby

require 'resolv'
puts Resolv.getaddress("http://www.google.com/")