dnsrbl-0.0.1: Asynchronous DNS RBL lookup

Portabilityportable
Stabilityprovisional
Maintainerholden@pigscanfly.ca

Network.DNSRBL

Description

Anynchronously lookup a host on multiple DSNRBLs.

Synopsis

Documentation

dorbls :: String -> IO [(String, Bool)]Source

dorbls is a friendly wrapper around dorblf which only requires a hostname

dorblf :: String -> [HostAddress] -> Resolver -> IO [(String, Bool)]Source

dorblf returns a list of (String,Bool) where the string is the RBL name and Bool is if it was found or not Note: There may be multiple instances of the same string with different Bool values since one hostname may resolve to multiple IPs some of which may match and some of which may not match

asanequery :: String -> [HostAddress] -> Resolver -> IO [(String, Bool)]Source

asanequery is a wrapper of dorblf which has only one instance of RBL and if any of the elements were found in the RBL (name, any of the IPs) if it is true otherwise it is false.

sanequery :: String -> IO [(String, Bool)]Source

sanquery is a Wrapper of dorbls which has only one instance of each RBL and if any of the elements were found in the RBL (name, any of the IPs) it is true, otherwise it is false