GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Net::DNS::Resolver::Mock(3) User Contributed Perl Documentation Net::DNS::Resolver::Mock(3)

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 );

zonefile_read ( $FileName )
Reads specified file for zone data
zonefile_parse ( $String )
Reads the zone data from the supplied string
die_on ( $Name, $Type, $Error )
Die with $Error for a query of $Name and $Type
enable_debug ()
Once set, the resolver will write any lookups received to STDERR and will be available via the following methods
disble_debug ()
Disable debugging
clear_debug ()
Clear the debugging list
get_debug ()
Returns a list of debugging entries

  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.
2020-02-15 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.