NAME

Mail::Milter::Authentication::DNSCache - DNS Cache methods for Authentication Milter

DESCRIPTION

Methods in the Net::DNS::Resolver namespace to implement a basic cache of DNS lookups.

SYNOPSIS

A basic cache of successful lookups made by the resolver.

CONSTRUCTOR

new( %ARGS )

New instance of object, please see Net::DNS::Resolver for details

cache_timeout

Number of seconds a cached result will be valid for.

Default 120

cache_error_limit

Unsuccessful results are not immediately cached, however if we have greater than cache_error_limit lookups for a given record within the cache_timeout time we will cache an unsuccessful result and return that for subsequent lookups within the cache_timeout time.

Default 3

METHODS

send()

Override send method with a cache

query()

Override query method with a cache

search()

Override search method with a cache

cache_cleanup()

Remove old items from the cache

cache_lookup($type,@args)

Perform a lookup (send, query, or search) and cache the results

child_init_hook()

Hook which runs after forking, sets up per process items.

process_request()

Hook which runs for each request, sets up per request items and processes the request.

DEPENDENCIES

Net::DNS::Resolver

AUTHORS

Marc Bradshaw <marc@marcbradshaw.net>

COPYRIGHT

Copyright 2015

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