! Query only TXT and not DNS RR Type SPF records to reduce unnecessary DNS

lookups (LP: #161133)
This commit is contained in:
Scott Kitterman 2012-01-12 10:30:45 -05:00
commit f613668cb4
2 changed files with 6 additions and 1 deletions

View file

@ -5,6 +5,8 @@
# * = Fixed a bug, or made a minor improvement
--- 2.008 UNRELEASED
! Query only TXT and not DNS RR Type SPF records to reduce unnecessary DNS
lookups (LP: #161133)
* Fix incorrect version string
* Ensure all variables are initialized prior to being passed to syslog

View file

@ -41,8 +41,11 @@ my $resolver = Net::DNS::Resolver->new(
# 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(
dns_resolver => $resolver
dns_resolver => $resolver,
query_rr_types => Mail::SPF::Server->query_rr_type_txt
);
# Adding more handlers is easy: