https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6075





--- Comment #12 from Elsa AndrĂ©s <[email protected]>  2009-03-02 04:40:09 
PST ---
(In reply to comment #10)

> It's been a while since I debugged that code, but I recall that when I had to
> see just what the resolver was doing and -D dns did not show enough detail I
> edited the call to new of the dns reolver object to enable its debug flag and
> used that to follow exactly what queries and replies were happening. Tedious 
> to
> follow all that, but it helped when I needed it.

Is there any way I can make the debugger more verbose? Any flag I can activate
in ".pm" modules or anything I can test on my side...?

I just tried one of the examples listed ond Net::DNS and, AFAICT, it seems
working:

test.pl

***
#!/usr/bin/perl

use Net::DNS;
         my $res   = Net::DNS::Resolver->new;
         my $query = $res->search("52.130.184.208.zen.spamhaus.org");

         if ($query) {
             foreach my $rr ($query->answer) {
                 next unless $rr->type eq "A";
                 print $rr->address, "\n";
             }
         } else {
             warn "query failed: ", $res->errorstring, "\n";
         }
***

When I run it, it gives me the following response:

./test.pl
216.234.246.150

And tcpdump get it also:

***
13:28:55.686573 IP 10.0.0.11.32853 >
33.Red-80-58-0.staticIP.rima-tde.net.domain: 17777+ A?
52.130.184.208.zen.spamhaus.org. (49)
13:28:55.726577 IP 33.Red-80-58-0.staticIP.rima-tde.net.domain >
10.0.0.11.32853: 17777 NXDomain 0/1/0 (113)
13:28:55.729749 IP 10.0.0.11.32853 >
33.Red-80-58-0.staticIP.rima-tde.net.domain: 28412+ A?
52.130.184.208.zen.spamhaus.org.net. (53)
13:28:55.770007 IP 33.Red-80-58-0.staticIP.rima-tde.net.domain >
10.0.0.11.32853: 28412 1/0/0 A 96.f6.ead8.static.theplanet.com (69)
***

So I cannot guess why anyting seems to be resolving o.k. but SA :-?


-- 
Configure bugmail: 
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to