Rails 做 DNS 域名查询

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

require 'resolv'
Resolv::DNS.new.each_address("oschina.net") { |addr| puts addr }