-
-
Save anonymous/b1c8bd21cf3ec79d13dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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