Net::DNSServer::Cache - A Net::DNSServer::Base which implements a DNS Cache in memory to increase resolution speed and to follow rfcs.
#!/usr/bin/perl -w -T use strict; use Net::DNSServer; use Net::DNSServer::Cache; my $resolver1 = new Net::DNSServer::Cache; my $resolver2 = ... another resolver object ...; run Net::DNSServer { priority => [$resolver1,$resolver2], };
This resolver will cache responses that another module resolves complying with the corresponding TTL of the response. It cannot provide resolution for a request unless it already exists within its cache. Note: This resolver may not work properly with a forking server.
Rob Brown, rob@roobik.com
Net::DNSServer::Base
Copyright (c) 2001, Rob Brown. All rights reserved. Net::DNSServer is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
$Id: Cache.pm,v 1.8 2002/04/29 09:29:49 rob Exp $
To install Net::DNSServer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DNSServer
CPAN shell
perl -MCPAN -e shell install Net::DNSServer
For more information on module installation, please visit the detailed CPAN module installation guide.