View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Jason Long > Mail-DKIM-0.39_6 > Mail::DKIM::DNS



Annotate this POD


New  4
Open  5
View/Report Bugs
Source   Latest Release: Mail-DKIM-0.53


Mail::DKIM::DNS - performs DNS queries for Mail::DKIM


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.


There are a few global variables that can be set to modify the behavior of this module.


This specifies the maximum amount of time (in seconds) to wait for a single DNS query to complete. The default is 10.


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,

Note: to disable use of EDNS0 (enabled by default as of Mail::DKIM 0.40):



Jason Long, <>


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.

syntax highlighting: