Sha256: f84f81581692dad74113474da59bc08751cf65eb6350971ba6eda9ceb6835d30

Contents?: true

Size: 404 Bytes

Versions: 2

Compression:

Stored size: 404 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
	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
		end
	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dnsbl-client-0.1.1 bin/dnsbl-client
dnsbl-client-0.1.0 bin/dnsbl-client