skadns
Software
www.skarnet.org
The skadnsfilter program
skadnsfilter converts a series of IP addresses to
host names. Its interface and behaviour are the same as
dnsfilter's.
Options
- -c n: do at most n DNS queries in parallel.
Default: SKADNS_MAXCONCURRENCY, as defined in skadns.h. It's the
maximum value.
- -l n: Read ahead at most n lines.
Default: 4*SKADNS_MAXCONCURRENCY.
Notes
skadnsfilter performs the same work as dnsfilter: it should have roughly
the same speed (with a little overhead due to communication time with the
daemon). The major difference is the programming style: see the source
code of both programs. While dnsfilter handles the DNS queries itself,
skadnsfilter leaves it to the library and makes only high-level calls,
without even being aware of the network.
skadnsfilter is entirely asynchronous: it handles stdin and stdout
asynchronously, as well as the DNS queries. By contrast, dnsfilter
handles stdin and stdout synchronously, and DNS resolution may block
if one of them blocks.