• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/Net/DNS/Resolver/H15-Feb-2020-19989

t/H03-May-2022-169114

ChangesH A D15-Feb-2020327 2013

LICENSEH A D15-Feb-202017.9 KiB380292

MANIFESTH A D15-Feb-2020260 1615

META.ymlH A D15-Feb-2020716 2928

Makefile.PLH A D15-Feb-20201.4 KiB6251

READMEH A D15-Feb-20201.4 KiB7742

dist.iniH A D15-Feb-2020534 3626

README

1NAME
2
3    Net::DNS::Resolver::Mock - Mock a DNS Resolver object for testing
4
5DESCRIPTION
6
7    A subclass of Net::DNS::Resolver which parses a zonefile for it's data
8    source. Primarily for use in testing.
9
10SYNOPSIS
11
12        use Net::DNS::Resolver::Mock;
13
14        my $Resolver = Net::DNS::Resolver::Mock-new();
15
16        $Resolver->zonefile_read( $FileName );
17        # or
18        $Resolver->zonefile_parse( $String );
19
20PUBLIC METHODS
21
22    zonefile_read ( $FileName )
23
24      Reads specified file for zone data
25
26    zonefile_parse ( $String )
27
28      Reads the zone data from the supplied string
29
30    die_on ( $Name, $Type, $Error )
31
32      Die with $Error for a query of $Name and $Type
33
34    enable_debug ()
35
36      Once set, the resolver will write any lookups received to STDERR and
37      will be available via the following methods
38
39    disble_debug ()
40
41      Disable debugging
42
43    clear_debug ()
44
45      Clear the debugging list
46
47    get_debug ()
48
49      Returns a list of debugging entries
50
51DEPENDENCIES
52
53      Net::DNS::Resolver
54      Net::DNS::Packet
55      Net::DNS::Question
56      Net::DNS::ZoneFile
57
58BUGS
59
60    Please report bugs via the github tracker.
61
62    https://github.com/marcbradshaw/Net-DNS-Resolver-Mock/issues
63
64AUTHORS
65
66    Marc Bradshaw, <marc@marcbradshaw.net>
67
68COPYRIGHT
69
70    Copyright (c) 2017, Marc Bradshaw.
71
72LICENCE
73
74    This library is free software; you may redistribute it and/or modify it
75    under the same terms as Perl itself.
76
77