Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
find 2letter domain
require 'whois'
domain = 'gy'
puts ('aa'..'zz').map { |name| "#{name}.#{domain}" }
.reject { |fqdn| sleep 0.5; Whois.registered? fqdn }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment