MATT::DNS - Common DNS functions
MATT::DNS is a grouping of frequently used functions I've written for using DNS functions within perl.
These functions are used by toaster-watcher to determine if RBL's are available when generating qmail's smtpd/run control file.
use Mail::Toaster::DNS; GetRblTestNS($rbl);
$rbl is the reverse zone we use to test this rbl.
use MATT::DNS; GetRblTestPositiveIP($rbl);
$rbl is the reverse zone we use to test this rbl. Positive test is a test that should always return a RBL match. If it should and doesn't, then we assume that RBL has been disabled by it's operator.
Some RBLs have test IP's to verify they are working. For geographic RBLs (like korea.services.net) we can simply choose any IP within their allotted space. Most other RBLs use 127.0.0.2 as a positive test.
use Mail::Toaster::DNS; GetRblTestNegativeIP($rbl);
This test is a little more difficult as RBL operators don't typically have an IP that's whitelisted. The DNS location based lists are very easy to test negatively. For the rest I'm listing my own IP as the default unless the RBL has a specific one. At the very least, my site won't get blacklisted that way. ;) I'm open to better suggestions.
Matt Simerson <matt@tnpi.biz>
None known. Report any to author.
http://www.tnpi.biz/computing/ http://www.tnpi.biz/computing/perl/MATT-Bundle/
MATT::Apache, MATT::DNS, MATT::FreeBSD, MATT::Mysql, MATT::Passwd, MATT::Perl, MATT::Qmail, MATT::Quota MATT::SSL, MATT::Utility
Copyright 2003, The Network People, Inc. All Rights Reserved.