1Net::DNS::Resolver::MocUks(e3r)Contributed Perl DocumentNaetti:o:nDNS::Resolver::Mock(3)
2
3
4

NAME

6       Net::DNS::Resolver::Mock - Mock a DNS Resolver object for testing
7

DESCRIPTION

9       A subclass of Net::DNS::Resolver which parses a zonefile for it's data
10       source. Primarily for use in testing.
11

SYNOPSIS

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

PUBLIC METHODS

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
28       die_on ( $Name, $Type, $Error )
29           Die with $Error for a query of $Name and $Type
30
31       enable_debug ()
32           Once set, the resolver will write any lookups received to STDERR
33           and will be available via the following methods
34
35       disble_debug ()
36           Disable debugging
37
38       clear_debug ()
39           Clear the debugging list
40
41       get_debug ()
42           Returns a list of debugging entries
43

DEPENDENCIES

45         Net::DNS::Resolver
46         Net::DNS::Packet
47         Net::DNS::Question
48         Net::DNS::ZoneFile
49

BUGS

51       Please report bugs via the github tracker.
52
53       https://github.com/marcbradshaw/Net-DNS-Resolver-Mock/issues
54

AUTHORS

56       Marc Bradshaw, <marc@marcbradshaw.net>
57
59       Copyright (c) 2017, Marc Bradshaw.
60

LICENCE

62       This library is free software; you may redistribute it and/or modify it
63       under the same terms as Perl itself.
64
65
66
67perl v5.32.0                      2020-07-28       Net::DNS::Resolver::Mock(3)
Impressum