NAME
CCCP::LiveMX
DESCRIPTION
Getting a ip-list of living MX-records for hostname
SYNOPSIS
use CCCP::LiveMX;
my $lmx = CCCP::LiveMX->check_host('example.org');
if ($lmx->success) {
my @live_ip = $lmx->live_ip;
} else {
print $lmx->error,"\n";
my @not_ping_ip = $lmx->not_ping;
my @not_ask_ip = $lmx->not_ask;
}
PACKAGE VARIABLES
$CCCP::LiveMX::timeout
Timeout for ping, resolve and another. By default 5 sec.
METHODS
check_host($host_name)
Checking MX records for $host_name
and return instance.
success()
Return status of check (bool)
live_ip()
Return list avaliable ip for host, sorted by "preference" mx-records
not_ping()
Return list ip for host, that not ping
not_ask()
Return list ip for host, that ping but not ask
error()
Return error(string) or undef
DEPENDS ON
Mail::CheckUser (used only package variables)
AUTHOR
mr.Rico <catamoose at yandex.ru>