! Query only TXT and not DNS RR Type SPF records to reduce unnecessary DNS
lookups (LP: #161133)
This commit is contained in:
parent
fef173c8e2
commit
f613668cb4
2 changed files with 6 additions and 1 deletions
2
CHANGES
2
CHANGES
|
|
@ -5,6 +5,8 @@
|
||||||
# * = Fixed a bug, or made a minor improvement
|
# * = Fixed a bug, or made a minor improvement
|
||||||
|
|
||||||
--- 2.008 UNRELEASED
|
--- 2.008 UNRELEASED
|
||||||
|
! Query only TXT and not DNS RR Type SPF records to reduce unnecessary DNS
|
||||||
|
lookups (LP: #161133)
|
||||||
* Fix incorrect version string
|
* Fix incorrect version string
|
||||||
* Ensure all variables are initialized prior to being passed to syslog
|
* Ensure all variables are initialized prior to being passed to syslog
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,8 +41,11 @@ my $resolver = Net::DNS::Resolver->new(
|
||||||
# Makes for a total timeout for UDP queries of 5s * 2 = 10s.
|
# Makes for a total timeout for UDP queries of 5s * 2 = 10s.
|
||||||
);
|
);
|
||||||
|
|
||||||
|
# query_rr_type_all will query both type TXT and type SPF. This upstream
|
||||||
|
# default is changed due to there being essentiall no type SPF deployment.
|
||||||
my $spf_server = Mail::SPF::Server->new(
|
my $spf_server = Mail::SPF::Server->new(
|
||||||
dns_resolver => $resolver
|
dns_resolver => $resolver,
|
||||||
|
query_rr_types => Mail::SPF::Server->query_rr_type_txt
|
||||||
);
|
);
|
||||||
|
|
||||||
# Adding more handlers is easy:
|
# Adding more handlers is easy:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue