How can I use Ruby to check if a domain exists?

Posted by macek on Stack Overflow See other posts from Stack Overflow or by macek
Published on 2010-04-22T22:41:18Z Indexed on 2010/04/22 22:43 UTC
Read the original article Hit count: 139

Filed under:
|
|
|

Something along the lines of:

def domain_exists?(domain)
  # perform check
  # return true|false
end

puts "valid!" if domain_exists?("example.com")

© Stack Overflow or respective owner

Related posts about ruby

Related posts about domain