Sha256: e4dd315950828b007235cd55c2236bc28e0516c342267d3c8534044df713a26d

Contents?: true

Size: 469 Bytes

Versions: 4

Compression:

Stored size: 469 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems'
gem 'dnsbl-client', '>= 0.2.3'
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.4.0 bin/dnsbl-client
dnsbl-client-0.3.1 bin/dnsbl-client
dnsbl-client-0.3.0 bin/dnsbl-client
dnsbl-client-0.2.4 bin/dnsbl-client