DNS::Record::Check - Provides checks for some common DNS records.
Version 0.0.0
use DNS::Record::Check; my $dnsrc=DNS::Record::Check->new; if($dnsrc->A($recordValue)){ warn($recordValue.' is not a valid a record'); }
This initiates the object.
$dnsrc=DNS::Record::Check->new;
Checks if a A record value is valid.
my $return=$dnsrc->A($value);
Valid.
Not defined.
Contains non-numeric or period characters.
It has less than four numbers.
It has more than four numbers.
The number is 0.
One of the numbers is greater than 255.
The fourth number is zero.
Checks if a AAAA record value is valid.
my $return=$dnsrc->AAAA($value);
Found characters that do not match a AAAA record.
Matched more than two semi-colons in a row.
Checks if a CNAME record value is valid.
my $return=$dnsrc->CNAME($value);
Non-alphanumeric/period characters found.
The host name begins with a period.
Check a HINFO record value.
my $return=$dnsrc->HINFO($value);
Undefined.
Does not start with a leter.
Contains values outside of capital letters, numbers, forwdward slash, or a hyphen.
Does not end in either a capital letter or number.
The MX value is not valid.
my $return=$dnsrc->MX($value);
Non-numeric priority.
No hostname.
The hostname is not a valid domain name.
Additional information was found after a third space.
Checks if a NS record value is valid.
my $return=$dnsrc->NS($value);
See the return value listing for CNAME.
Checks if a PTR record value is valid.
my $return=$dnsrc->PTR($value);
Checks if a RP record value is valid.
my $return=$dnsrc->RP($value);
Invalid email address.
Invalid hostname in email address.
Checks if a TXT record value is valid.
my $return=$dnsrc->TXT($value);
Zane C. Bowers, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-dns-record-check at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DNS-Record-Check. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-dns-record-check at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc DNS::Record::Check
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=DNS-Record-Check
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/DNS-Record-Check
CPAN Ratings
http://cpanratings.perl.org/d/DNS-Record-Check
Search CPAN
http://search.cpan.org/dist/DNS-Record-Check/
SVN Repo
http://eesdp.org/svnweb/index.cgi/pubsvn/browse/Perl/DNS%3A%3ARecord%3A%3ACheck
Copyright 2010 Zane C. Bowers.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install DNS::Record::Check, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DNS::Record::Check
CPAN shell
perl -MCPAN -e shell install DNS::Record::Check
For more information on module installation, please visit the detailed CPAN module installation guide.