They're not very well documented, unfortunately :( But it would be a good idea. in particular, Mail::SpamAssassin::DnsResolver is much more efficient in terms of resource usage than Net::DNS is.
For what it's worth, SpamAssassin 3.2.0 has a generalized asynchronous-rule system in AsyncLoop.pm, which is useful for network rules; you start a rule lookup, and later "harvest" the results. This is *great* to reduce overall latency of the scan time. --j. Jonas Eckerman writes: > John Rudd wrote: > > > a) Does anyone think I _should_ switch to Net::DNS for the botnet_baddns > > function? Or is the gethostbyname() call good enough? > > If they provide what you need, I think using the permsgstats object's lookup > methods would be the right thing. > > I also think you should check $pms->is_dns_available() before checking DNS. > > Regards (and thanks for thge plugin) > /Jonas > -- > Jonas Eckerman, FSDB & Fruktträdet > http://whatever.frukt.org/ > http://www.fsdb.org/ > http://www.frukt.org/