Net::DNS::Resolver::Mock - Mock a DNS Resolver object for testing
A subclass of Net::DNS::Resolver which parses a zonefile for it's data source. Primarily for use in testing.
use Net::DNS::Resolver::Mock; my $Resolver = Net::DNS::Resolver::Mock-new(); $Resolver->zonefile_read( $FileName ); # or $Resolver->zonefile_parse( $String );
Reads specified file for zone data
Reads the zone data from the supplied string
Net::DNS::Resolver Net::DNS::Packet Net::DNS::Question Net::DNS::ZoneFile
Please report bugs via the github tracker.
https://github.com/marcbradshaw/Net-DNS-Resolver-Mock/issues
Marc Bradshaw, <marc@marcbradshaw.net>
Copyright (c) 2017, Marc Bradshaw.
This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
To install Net::DNS::Resolver::Mock, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DNS::Resolver::Mock
CPAN shell
perl -MCPAN -e shell install Net::DNS::Resolver::Mock
For more information on module installation, please visit the detailed CPAN module installation guide.