manpagez: man pages & more
man Net::DNS::Resolver::Mock(3)
Home | html | info | man
Net::DNS::Resolver::Mock(3)



NAME

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


DESCRIPTION

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


SYNOPSIS

           use Net::DNS::Resolver::Mock;

           my $Resolver = Net::DNS::Resolver::Mock-new();

           $Resolver->zonefile_read( $FileName );
           # or
           $Resolver->zonefile_parse( $String );


PUBLIC METHODS

       zonefile_read ( $FileName )
           Reads specified file for zone data

       zonefile_parse ( $String )
           Reads the zone data from the supplied string


DEPENDENCIES

         Net::DNS::Resolver
         Net::DNS::Packet
         Net::DNS::Question
         Net::DNS::ZoneFile


BUGS

       Please report bugs via the github tracker.

       https://github.com/marcbradshaw/Net-DNS-Resolver-Mock/issues


AUTHORS

       Marc Bradshaw, <marc@marcbradshaw.net>


COPYRIGHT

       Copyright (c) 2017, Marc Bradshaw.


LICENCE

       This library is free software; you may redistribute it and/or modify it
       under the same terms as Perl itself.



perl v5.24.2                      2017-08-14       Net::DNS::Resolver::Mock(3)

net-dns-resolver-mock 1.201.708.140 - Generated Wed Oct 25 18:15:16 CDT 2017
© manpagez.com 2000-2025
Individual documents may contain additional copyright information.