NAME

DNS::Record::Check - Provides checks for some common DNS records.

VERSION

Version 0.0.0

SYNOPSIS

use DNS::Record::Check;

my $dnsrc=DNS::Record::Check->new;

if($dnsrc->A($recordValue)){
    warn($recordValue.' is not a valid a record');
}

SUBROUTINES/METHODS

new

This initiates the object.

$dnsrc=DNS::Record::Check->new;

A

Checks if a A record value is valid.

my $return=$dnsrc->A($value);

Return Values

0

Valid.

1

Not defined.

2

Contains non-numeric or period characters.

3

It has less than four numbers.

4

It has more than four numbers.

5

The number is 0.

6

One of the numbers is greater than 255.

7

The fourth number is zero.

AAAA

Checks if a AAAA record value is valid.

my $return=$dnsrc->AAAA($value);

Return Values

0

Valid.

1

Not defined.

2

Found characters that do not match a AAAA record.

3

Matched more than two semi-colons in a row.

CNAME

Checks if a CNAME record value is valid.

my $return=$dnsrc->CNAME($value);

Return Values

0

Valid.

1

Not defined.

2

Non-alphanumeric/period characters found.

3

The host name begins with a period.

HINFO

Check a HINFO record value.

my $return=$dnsrc->HINFO($value);

Return Values

0

Valid.

1

Undefined.

2

Does not start with a leter.

3

Contains values outside of capital letters, numbers, forwdward slash, or a hyphen.

4

Does not end in either a capital letter or number.

MX

The MX value is not valid.

my $return=$dnsrc->MX($value);

Return Values

0

Valid.

1

Undefined.

2

Non-numeric priority.

3

No hostname.

4

The hostname is not a valid domain name.

5

Additional information was found after a third space.

NS

Checks if a NS record value is valid.

my $return=$dnsrc->NS($value);

Return Values

See the return value listing for CNAME.

PTR

Checks if a PTR record value is valid.

my $return=$dnsrc->PTR($value);

Return Values

See the return value listing for CNAME.

RP

Checks if a RP record value is valid.

my $return=$dnsrc->RP($value);

Return Values

0

Valid.

1

Undefined.

2

Invalid email address.

3

Invalid hostname in email address.

TXT

Checks if a TXT record value is valid.

my $return=$dnsrc->TXT($value);

Return Values

0

Valid.

1

Undefined.

AUTHOR

Zane C. Bowers, <vvelox at vvelox.net>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc DNS::Record::Check

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

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.