Net::DNS::Method::Constant - Provides constant answers to queries
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');
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.
->new()
$Id: Constant.pm,v 1.2 2002/10/23 04:43:58 lem Exp $
original version; created by h2xs 1.19
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.
AUTOLOAD
Luis E. Munoz <luismunoz@cpan.org>
perl(1), Net::DNS, Net::DNS::RR, Net::DNS::Method.
To install Net::DNS::Method, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DNS::Method
CPAN shell
perl -MCPAN -e shell install Net::DNS::Method
For more information on module installation, please visit the detailed CPAN module installation guide.