18 Dec 2018 14:46:20 UTC
- Distribution: Test-Instance-DNS
- Module version: 0.001
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Testers (54 / 272 / 0)
- KwaliteeBus factor: 0
- 47.06% Coverage
- License: perl_5
- Activity24 month
- Download (11.18KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionTBSLIVER Tom Bloorand 3 contributors
- Tom Bloor
- Robert Sedlacek
- Thomas Bloor
Test::Instance::DNS - Mock DNS server for testing
use Test::More; use Test::DNS; use Test::Instance::DNS; my $t_i_dns = Test::Instance::DNS->new( listen_addr => '127.0.0.1', zone_file => 't/etc/db.example.com', ); $t_i_dns->run; my $dns = Test::DNS->new(nameservers => ['127.0.0.1']); $dns->object->port($t_i_dns->listen_port); $dns->is_a('example.com' => '192.0.2.1'); done_testing;
Provides a local mock DNS server usable for testing.
Tom Bloor <email@example.com>
Copyright 2018- Tom Bloor
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Test::Instance::DNS, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Test::Instance::DNS
For more information on module installation, please visit the detailed CPAN module installation guide.