Performing DNS Queries : DNS « Network « Ruby






Performing DNS Queries


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

 

Related examples in the same category

1.Get email server