How can I find the IP address of an arbitrary domain? I want to get the IP address from the DNS server.
Try this code:
require 'resolv' puts Resolv.getaddresses("www.panfu.dk")