NAME
Net::DNS::Method::Constant - Provides constant answers to queries
SYNOPSIS
use Net::DNS::Method;
use Net::DNS::Method::Constant;
my $c = new Net::DNS::Method::Constant ('domain.com', 'IN', 'A',
'IN A 127.0.0.1');
DESCRIPTION
For any question matching the domain, class and type supplied, this module responds with an authoritative answer containing the specified RR.
The response RR will be built using the partial data passed as the fourth parameter to ->new()
. The query name will be used to build a Net::DNS::RR object, which will be put in the answer section of the response.
HISTORY
$Id: Constant.pm,v 1.2 2002/10/23 04:43:58 lem Exp $
- 1.00 Fri May 4 13:54:19 2001
-
original version; created by h2xs 1.19
- 2.00 Tue Oct 22, 13:55:00 2002
-
Repackaged for distribution
Use of
AUTOLOAD
to support any RR that Net::DNS supports. Note that only uppercase names are dynamically created, as this is assumed to be the name of an RR.
AUTHOR
Luis E. Munoz <luismunoz@cpan.org>
SEE ALSO
perl(1), Net::DNS, Net::DNS::RR, Net::DNS::Method.