1 --- spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm 2015/04/28 20:36:05 1676616
2 +++ spamassassin/branches/3.4/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm 2015/08/04 23:16:38 1694126
4 next unless (defined($str) && defined($dom));
5 dbg("uridnsbl: got($j) NS for $dom: $str");
7 - if ($str =~ /IN\s+NS\s+(\S+)/) {
10 + if ($rr->type eq 'NS') {
11 + my $nsmatch = lc $rr->nsdname; # available since at least Net::DNS 0.14
12 my $nsrhblstr = $nsmatch;
13 my $fullnsrhblstr = $nsmatch;
17 dbg("uridnsbl: complete_a_lookup got(%d) A for %s: %s", $j,$hname,$str);
20 - if ($str =~ /IN\s+A\s+(\S+)/) {
21 - $self->lookup_dnsbl_for_ip($pms, $ent->{obj}, $1);
22 + if ($rr->type eq 'A') {
23 + my $ip_address = $rr->rdatastr;
24 + $self->lookup_dnsbl_for_ip($pms, $ent->{obj}, $ip_address);