Skip to content

Commit

Permalink
reformatting README for github
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislee35 committed Jul 16, 2011
1 parent 35d1e3c commit bd50a76
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

dnsbl-client queries DNS Blacklists for listings. Currently this only does IP lookups, but the next version will handle domains.

require "dnsbl-client"
c = DNSBL::Client.new
c.lookup("203.150.14.85")
=> [#<struct DNSBL::DNSBLResult dnsbl="UCEPROTECT1", query="85.14.150.203.dnsbl-1.uceprotect.net", result="127.0.0.2", meaning="Blacklisted", timing=0.0247988700866699>, #<struct DNSBL::DNSBLResult dnsbl="BARRACUDA", query="85.14.150.203.b.barracudacentral.org", result="127.0.0.2", meaning="Listed", timing=0.0266849994659424>]
require "dnsbl-client"
c = DNSBL::Client.new
c.lookup("203.150.14.85")
=> [#<struct DNSBL::DNSBLResult dnsbl="UCEPROTECT1", query="85.14.150.203.dnsbl-1.uceprotect.net", result="127.0.0.2", meaning="Blacklisted", timing=0.0247988700866699>, #<struct DNSBL::DNSBLResult dnsbl="BARRACUDA", query="85.14.150.203.b.barracudacentral.org", result="127.0.0.2", meaning="Listed", timing=0.0266849994659424>]

== Contributing to dnsbl-client

* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
Expand Down

0 comments on commit bd50a76

Please sign in to comment.