Mail::DKIM::DNS(3)
π NAME π
okay bestie, meet Mail::DKIM::DNS(3) from the User Contributed Perl Documentation β the module that performs DNS queries for Mail::DKIM. that's the whole vibe for this page, and honestly? iconic.
β¨ VERSION β¨
version 1.20240923
πΈ DESCRIPTION πΈ
this is the module that performs DNS queries for Mail::DKIM. no cap, that's the gig.
π CONFIGURATION π
this module has a couple configuration settings that the caller may want to use to customize the behavior of this module.
πΈ $Mail::DKIM::DNS::TIMEOUT πΈ
this global variable 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() π¦
use this global subroutine to get or replace the instance of Net::DNS::Resolver that Mail::DKIM uses. if set to undef (the default), then a brand new default instance of Net::DNS::Resolver will be created the first time a DNS query is needed.
you will call this subroutine if you want to specify non-default options to Net::DNS::Resolver, such as different timeouts, or to enable use of a persistent socket. for example:
# first, construct a custom DNS resolver
my $res = Net::DNS::Resolver->new(
udp_timeout => 3, tcp_timeout => 3, retry => 2,
);
$res->udppacketsize(1240);
$res->persistent_udp(1);
# then, tell Mail::DKIM to use this resolver
Mail::DKIM::DNS::resolver($res);
π§ Mail::DKIM::DNS::enable_EDNS0() π§
this is a convenience subroutine that will construct an appropriate DNS resolver that uses EDNS0 (Extension mechanisms for DNS) to support large DNS replies, and configure Mail::DKIM to use it. (as such, it should NOT be used in conjunction with the resolver() subroutine described above.)
Mail::DKIM::DNS::enable_EDNS0();
use of EDNS0 is recommended, since it reduces the need for falling back to TCP when dealing with large DNS packets.
however, it is not enabled by default because some Internet firewalls which do deep inspection of packets are not able to process EDNS0-enabled packets. when there is a firewall on a path to a DNS resolver, the EDNS0 feature should be specifically tested before enabling.
π AUTHORS π
Jason Long <jason@long.name>Marc Bradshaw <marc@marcbradshaw.net>Bron Gondwana <brong@fastmailteam.com> (ARC)
π«Ά THANKS π«Ά
work on ensuring that this module passes the ARC test suite was generously sponsored by Valimail (https://www.valimail.com/). periodt, thank you Valimail π
π COPYRIGHT AND LICENSE π
- Copyright (C) 2013 by Messiah College
- Copyright (C) 2010 by Jason Long
- Copyright (C) 2017 by Standcore LLC
- Copyright (C) 2020 by FastMail Pty Ltd
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.
okay that's the whole page bestie π
β this was Mail::DKIM::DNS(3) from perl v5.42.0, dated 2024-09-23. mwah π
π¦ where this page comes from
- alpine 3.23: perl-mail-dkim-doc 1.20240923-r0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- opensuse-leap 16.0: perl-Mail-DKIM 1.20240923-bp160.1.2 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms