module DnsDomainChecker

Constants

VERSION

Public Class Methods

available(domain) click to toggle source
# File lib/dns_domain_checker.rb, line 7
def self.available(domain)
  begin
              res = Dnsruby::Resolver.new
              ret = res.query(domain, Types.TXT)
              return false
      rescue
              return true
      end
end