Fix for SPF record type

This commit is contained in:
Jamie Cameron
2013-02-27 21:32:31 -08:00
parent d1cd9ceb88
commit 0bbfdce8d6
2 changed files with 3 additions and 0 deletions

View File

@ -135,3 +135,5 @@ The source IP and port for zone transfers can now be specific on the Addresses a
Added support for zone signing using the DNSSEC-Tools suite, thanks to a patch from Suresh Krishnaswamy.
---- Changes since 1.600 ----
Changed all links to zones to use the zone name instead of an index, to prevent incorrect modification during concurrent access to the module.
---- Changes since 1.620 ----
Added a module configuration option to use the SPF type for Sender Permitted From records.

View File

@ -265,6 +265,7 @@ while($i < @tok) {
# If this is an SPF record .. adjust the class
local $spf;
if ($dir{'type'} eq 'TXT' &&
!$config{'spf_record'} &&
($spf=&parse_spf(@{$dir{'values'}}))) {
if (!@{$spf->{'other'}}) {
$dir{'type'} = 'SPF';