NAME
Mail::DKIM::DNS - performs DNS queries for Mail::DKIM
DESCRIPTION
This is the module that performs DNS queries for Mail::DKIM. It contains a few global variables that can be set by the caller in order to change its behavior.
CONFIGURATION
There are a few global variables that can be set to modify the behavior of this module.
- $Mail::DKIM::DNS::TIMEOUT
-
This specifies the maximum amount of time (in seconds) to wait for a single DNS query to complete. The default is 10.
- $Mail::DKIM::DNS::RESOLVER
-
This specifies the instance of Net::DNS::Resolver that is used to perform the queries. The default is undef, which causes a brand new default instance of Net::DNS::Resolver to be created for each DNS query.
Use this if you want to provide additional options to Net::DNS::Resolver, such as different timeouts or use of a persistent socket:
use Mail::DKIM::DNS; $Mail::DKIM::DNS::RESOLVER = Net::DNS::Resolver->new( udp_timeout => 3, tcp_timeout => 3, retry => 2, ); $Mail::DKIM::DNS::RESOLVER->udppacketsize(4096); $Mail::DKIM::DNS::RESOLVER->persistent_udp(1);
Note: to disable use of EDNS0 (enabled by default as of Mail::DKIM 0.40):
$Mail::DKIM::DNS::RESOLVER->udppacketsize(512);
AUTHOR
Jason Long, <jlong@messiah.edu>
COPYRIGHT AND LICENSE
Copyright (C) 2006-2007, 2012 by Messiah College
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.