Mail-Toaster
view release on metacpan or search on metacpan
doc/modules/DNS.html view on Meta::CPAN
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Mail::Toaster::DNS</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@tenten-slave.macports.org" />
</head>
<body style="background-color: white">
<ul id="index">
<li><a href="#NAME">NAME</a></li>
<li><a href="#SYNOPSIS">SYNOPSIS</a></li>
<li><a href="#DESCRIPTION">DESCRIPTION</a></li>
<li><a href="#SUBROUTINES">SUBROUTINES</a></li>
<li><a href="#AUTHOR">AUTHOR</a></li>
<li><a href="#BUGS">BUGS</a></li>
<li><a href="#SEE-ALSO">SEE ALSO</a></li>
<li><a href="#COPYRIGHT-AND-LICENSE">COPYRIGHT AND LICENSE</a></li>
</ul>
<h1 id="NAME">NAME</h1>
<p>Mail::Toaster::DNS - DNS functions, primarily to test RBLs</p>
<h1 id="SYNOPSIS">SYNOPSIS</h1>
<p>A set of subroutines for testing rbls to verify that they are functioning properly. If Net::DNS is installed it will be used but we can also test using dig.</p>
<h1 id="DESCRIPTION">DESCRIPTION</h1>
<p>These functions are used by toaster-watcher to determine if RBL's are available when generating qmail's smtpd/run control file.</p>
<h1 id="SUBROUTINES">SUBROUTINES</h1>
<dl>
<dt id="new">new</dt>
<dd>
<p>Create a new DNS method:</p>
<pre><code> use Mail::Toaster;
use Mail::Toaster::DNS;
my $dns = Mail::Toaster::DNS->new;</code></pre>
</dd>
<dt id="rbl_test">rbl_test</dt>
<dd>
<p>After the demise of osirusoft and the DDoS attacks currently under way against RBL operators, this little subroutine becomes one of necessity for using RBL's on mail servers. It is called by the toaster-watcher.pl script to test the RBLs befor...
<pre><code> my $r = $dns->rbl_test(conf=>$conf, zone=>"bl.example.com");
if ($r) { print "bl tests good!" };
arguments required:
zone - the zone of a blacklist to test</code></pre>
<p>Tests to make sure that name servers are found for the zone and then run several test queries against the zone to verify that the answers it returns are sane. We want to detect if a RBL operator does something like whitelist or blacklist the entir...
( run in 0.342 second using v1.01-cache-2.11-cpan-62a16548d74 )