Performing DNS Queries
require 'resolv' Resolv::DNS.new.each_address("oreilly.com") { |addr| puts addr }