def ips_for(name)
      resolvers.each do |r|
        ips = r.getaddresses(name)

        return ips unless ips.nil? || ips.empty?
      end

      []
    end
def ips_for(name)
      resolvers.each do |r|
        ips = r.getaddresses(name)

        return ips unless ips.nil? || ips.empty?
      end

      []
    end
Get ips for given name

 First the local resolver is used. On POSIX-systems /etc/hosts is used. On
 Windows C:\Windows\System32\drivers\etc\hosts is used.

 @param [String] name
   The name which should be resolved.