#!/usr/bin/env ruby require 'resolv' require 'ipaddr' dns = Resolv::DNS.new.getresources("blog.headdesk.me", Resolv::DNS::Resource::IN::A) p dns