How can I find the IP address of an arbitrary domain? I want to get the IP address from the DNS server.
Try going through the shell
domain = "google.com" `host #{domain}`.match(/(\d{1,3}\.){3}\d{1,3}/).to_s #=> "74.125.39.99"