# File lib/stella/utils.rb, line 115 def whois(host_or_ip) begin raw = Whois.whois(host_or_ip) info = raw.content.split("\n").select { |line| line !~ /\A[\#\%]/ && !line.empty? } info.join("\n") rescue => ex Stella.ld "Error fetching whois for #{host_or_ip}: #{ex.message}" Stella.ld ex.backtrace end end