1Net::DNS::Resolver::MocUks(e3r)Contributed Perl DocumentNaetti:o:nDNS::Resolver::Mock(3)
2
3
4
6 Net::DNS::Resolver::Mock - Mock a DNS Resolver object for testing
7
9 A subclass of Net::DNS::Resolver which parses a zonefile for it's data
10 source. Primarily for use in testing.
11
13 use Net::DNS::Resolver::Mock;
14
15 my $Resolver = Net::DNS::Resolver::Mock-new();
16
17 $Resolver->zonefile_read( $FileName );
18 # or
19 $Resolver->zonefile_parse( $String );
20
22 zonefile_read ( $FileName )
23 Reads specified file for zone data
24
25 zonefile_parse ( $String )
26 Reads the zone data from the supplied string
27
29 Net::DNS::Resolver
30 Net::DNS::Packet
31 Net::DNS::Question
32 Net::DNS::ZoneFile
33
35 Please report bugs via the github tracker.
36
37 https://github.com/marcbradshaw/Net-DNS-Resolver-Mock/issues
38
40 Marc Bradshaw, <marc@marcbradshaw.net>
41
43 Copyright (c) 2017, Marc Bradshaw.
44
46 This library is free software; you may redistribute it and/or modify it
47 under the same terms as Perl itself.
48
49
50
51perl v5.28.1 2017-12-19 Net::DNS::Resolver::Mock(3)