carta
firedns_dnsbl_lookup(3)

firedns_dnsbl_lookup3

Create a query to look up an ip in a dns-based blacklist

Usage

int firedns_dnsbl_lookup(const struct in_addr *ip, const char * const name)

Overview

firedns_dnsbl_lookup() creates and sends a request to resolve the TXT record of the entry of ip in the DNS-based blacklist name. It returns a file descriptor that should be select(2)'ed upon (read set). When the file descriptor shows ready for reading call firedns_getresult(3) to retrieve the results. The result will be a char * with the message from the listing server, or NULL if the IP address is not listed.

Return value

Returns an integer file descriptor that can be used the same as any other file descriptor. Returns -1 on error.

Author

Ian Gulliver <[email protected]>

From libfiredns-dev 0.9.12+dfsg-1 in Debian 4.0 (Etch). Parsed by carta from the page's man source.