Sha256: 8292d0ce421989f2b2ed6e76d4537e41ff4e6ef8df7d29e4a16e53a0b8013010
Contents?: true
Size: 419 Bytes
Versions: 4
Compression:
Stored size: 419 Bytes
Contents
#!/usr/bin/env ruby require 'dnsbl-client' c = DNSBL::Client.new if ARGV.length > 0 c.lookup(ARGV).each do |res| sep = "" res.members.each do |member| print sep print res[member] sep = "\t" end puts end else $stdin.each_line do |ip| ip.chomp! c.lookup(ip).each do |res| sep = "" res.members.each do |member| print sep print res[member] sep = "\t" end puts end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dnsbl-client-0.2.3 | bin/dnsbl-client |
dnsbl-client-0.2.1 | bin/dnsbl-client |
dnsbl-client-0.2.0 | bin/dnsbl-client |
dnsbl-client-0.1.2 | bin/dnsbl-client |