Skip to content

Instantly share code, notes, and snippets.

Created July 23, 2014 23:51
Show Gist options
  • Save anonymous/b1c8bd21cf3ec79d13dd to your computer and use it in GitHub Desktop.
Save anonymous/b1c8bd21cf3ec79d13dd to your computer and use it in GitHub Desktop.
Account.all.each do |account|
hosts = []
if account.alt_domain != nil
domain = account.alt_domain
domain.slice!(/(^.*?\.)/)
domain = pre + domain
ip = Resolv.getaddress domain
#hosts << Resolv.getname ip
end
#puts hosts
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment